From: Juanmol <ju...@gm...> - 2009-11-05 15:16:00
|
hello, i've the picoLCD, works fine but i need to execute a system command by pressing a button, i've try this: Display picoLCD { Driver 'picoLCDGraphic' Size '256x64' Contrast 230 Backlight 1 Inverted 1 Icons 1 } Widget TimerW { class 'Timer' expression n=LCD::GPI(1);nkey=n active 1 update tack } Widget GPO_kup { class 'GPO' expression linea=nkey==5?exec('/usr/bin/beep') update tack } Widget Ene { class 'Text' expression 'Hello' width 5 } Layout Default { Row5 { Col5 'ene' } Timer1 'TimerW' GPO3 'GPO_kup' } Display 'picoLCD' Layout 'Default' Variables { tick 500 tack 100 minute 60000 n 0 nkey 0 linea 1 } but the 'beep' sounds always, how i can do it? |