Wpis z mikrobloga

@matess1999: begin oznacza zainicjalizowanie wyświetlacza (Wysłanie do niego wszelkich informacji o np. ukryciu kursora itd). W loop zamiast lcd.begin(16,2); daj lcd.home(); , home czyscie wyświetlacz ze znaków i ustawia kursor na początek.
@matess1999: teraz dopiero zobaczyłem cały kod, tak powinno działać

void loop(){

buttonState=digitalRead(buttonPin);

buttonState2=digitalRead(buttonPin2);

if(buttonState==HIGH){

lcd.clear();

lcd.print(">test1");

lcd.setCursor(0, 1);

lcd.print("test2");

}

if(buttonState2==HIGH){

lcd.clear();

lcd.print("test1");

lcd.setCursor(0, 1);

lcd.print(">test2");

}

delay(3);

}
@fasfsrheeahgdfhds2: To tego drugiego trzeba jeszcze coś wgrać? Bo coś takiego mi wyskakuje:

sketchnov27a.ino: In function 'void setup()':

sketch
nov27a:81: error: 'class MenuBackend' has no member named 'toRoot'

sketchnov27a.ino: In function 'void menuUsed(MenuUseEvent)':

sketch
nov27a:132: error: 'class MenuBackend' has no member named 'toRoot'

sketchnov27a.ino: In function 'void navigateMenus()':

sketch
nov27a:276: error: 'class MenuBackend' has no member named 'toRoot'
@fasfsrheeahgdfhds2: Teraz coś takiego :

In file included from menu.ino:25:

C:\Users\Mateusz\Documents\Arduino\libraries\MenuBackend/MenuBackend.h:195: error: stray '\342' in program

C:\Users\Mateusz\Documents\Arduino\libraries\MenuBackend/MenuBackend.h:195: error: stray '\200' in program

C:\Users\Mateusz\Documents\Arduino\libraries\MenuBackend/MenuBackend.h:195: error: stray '\250' in program
@matess1999:

You are using a Zero Width Non Joiner character after the >> in your code. This is a unicode character that is encoded in UTF-8 as three characters with values 0x2e, 0x80, 0x8c (or in base 8, \342, \200, \214). This probably happened because you copy and pasted some code from a document (html web page?) that uses those special characters.


The C++ language require that the whole program uses
@fasfsrheeahgdfhds2: Na lcd normalnie się wszystko wyświetla, już parę razy się nim bawiłem. Chodzi mi o przyciski, na stronie na schemacie są pokazane przyciski podłączone jeszcze przez rezystor, ja podłączam tylko dwie górne nóżki do masy i 5v i nic nie mogę w tym menu zrobić