Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup() {
- /* initialize serial */
- Serial.begin(115200);
- Serial.println("Serial Begun!");
- char test[]="19/10/32 43:23:54";
- Serial << test << endl;
- char data[6];
- sscanf(test,"%hhd/%hhd/%hhd %hhd:%hhd:%hhd",&data[5],&data[4],&data[3],&data[2],&data[1],&data[0]);
- for (int8_t i=0;i<6;i++)
- {
- Serial << _DEC(data[i]) << " | ";
- }
- Serial << endl;
- while(1);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement