Increment transmitted value
This commit is contained in:
parent
2dcae04869
commit
d610efa5f1
@ -7,13 +7,15 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
Sender sender(27);
|
Sender sender(27);
|
||||||
|
|
||||||
|
unsigned int data = 1;
|
||||||
|
|
||||||
|
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
unsigned int data = 23;
|
|
||||||
|
|
||||||
std::cout << "Sending: " << data << std::endl;
|
std::cout << "Sending: " << data << std::endl;
|
||||||
|
|
||||||
sender.send(data);
|
sender.send(data++);
|
||||||
|
|
||||||
delay(1000);
|
delay(1000);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user