SHARE
TWEET

wq

a guest Mar 23rd, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. char dataString[50] = {0};
  2. int a =0;
  3.  
  4. void setup() {
  5. Serial.begin(9600);              //Starting serial communication
  6. }
  7.  
  8. void loop() {
  9.   a++;                          // a value increase every loop
  10.   sprintf(dataString,"%02X",a); // convert a value to hexa
  11.   Serial.println(dataString);   // send the data
  12.   delay(1000);                  // give the loop some break
  13. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top