23 lines
276 B
INI
23 lines
276 B
INI
func void Init_Buttons(void)
|
|
{
|
|
PORTA &= ~(1<<8);
|
|
|
|
}
|
|
|
|
func void CapteurOn()
|
|
{
|
|
PORTA |= (1<<8);
|
|
|
|
}
|
|
|
|
func void CapteurOff()
|
|
{
|
|
PORTA &= ~(1<<8);
|
|
|
|
}
|
|
|
|
|
|
Init_Buttons();
|
|
KILL button *
|
|
define button "Active Capteur","CapteurOn()"
|
|
define button "Deactive Capteur","CapteurOff()"
|