Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
A microcontroller board based on the ATmega2560 or 1280 chip. Use this tag for questions specifically regarding the Mega, and not just general Arduino usage.
2
votes
What is the best data type to be used through i2C
I2C works with fixed size byte arrays.
Single bytes for commands should be sufficient. For positions you might need int16_t or even bigger numbers. Unsigned positions relative to (above) zero might m …
2
votes
Ensure board is always on the same port?
Normally, the COM port number wont change, but you cannot simply rely on this.
Depends on various effects, especially if you have multiple USB-Serial devices, update the driver, etc. Also, there's th …
1
vote
Arduino keeps looping
To add to KIIV's concise response, the line
Serial.println(str); //prbline
can be easiest created without itoa and leading zero helper strings by
int num = 9; // Test input 0 .. 9 ( or even 15 = …