zrobiłem tak:
jednak na monitorze szeregowym wypisuje mi jedno '0' - czy to jest poprawnie?
Kod:
#include <avr/pgmspace.h>
const int klawisz[1] PROGMEM = {
0b11111111111111111111101000000101
};
bool running = false;
void setup() {
Serial.begin(9600);
}
void loop() {
if(running==false){
delay(600);
Serial.write(klawisz[1]);
Serial.flush();
Serial.print(klawisz[1]);
Serial.end();
running=true;
}
}
jednak na monitorze szeregowym wypisuje mi jedno '0' - czy to jest poprawnie?