11-05-2018, 00:23
No przecież miałeś zainteresować się tym portem szeregowym.
Jeśli masz problem z kodem lub sprzętem, zadaj pytanie na forum. Nie odpowiadam na PW, jeśli nie dotyczą one spraw forum lub innych tematów prywatnych.
Ocena wątku:
Odbiornik IR RE3265R1000 (którym chciałbym zastąpić Arduinem)
|
Cytat:...[ ]
wlacz_LEDTV:2: error: 'b' was not declared in this scope
const int klawisz[1] PROGMEM = {b&11111111111111111111101000000101};
^
exit status 1
'b' was not declared in this scope
Cytat:C:\Users\Leslaw K\Documents\Arduino\wlacz_TV\wlacz_TV.ino:3:1: warning: character constant too long for its type
'b&11111111111111111111101000000101'
^
Cytat:wlacz_TV:134: error: expected ',' or ';' before 'void'
void setup() {
^
exit status 1
'B11111111111111111111101000000101' was not declared in this scope
for (byte maska = 0x80; maska; maska >>= 1)
{
if (maska & wartosc)
Serial.print('1');
else
Serial.print('0');
}
Serial.println();