Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char s;
- void setup() {
- // put your setup code here, to run once:
- Serial.begin(9600);
- Serial.write(0xA1);
- Serial.write(0xF1);
- //Serial.write(0x02);
- }
- void loop() {
- // put your main code here, to run repeatedly:
- if (Serial.available()>0){
- s=Serial.read();
- Serial.println(s,HEX);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement