/* Test of operations on output ports. Last updated 4.1.01. */ #include "RCX_String.h" #include "RCX_Control.h" #include "H8.h" #include "Time.h" #include "LCD.h" #include "Battery.h" #include "Buttons.h" #include "OutputPorts.h" void _start(void) { ButtonsInit(); while ( ! Running ){ lcd_show_int16(BatteryLevel()); BusyPauseMS(300); } lcd_show_int16(OutputPorts); lcd_show_digit(0); BusyPauseMS(3000); while ( Running){ PortA(OnPos); lcd_show_int16(OutputPorts); lcd_show_digit(1); BusyPauseMS(3000); PortA(Brake); PortB(OnNeg); PortC(Brake); lcd_show_int16(OutputPorts); lcd_show_digit(2); BusyPauseMS(3000); OutputPortsFloat(); lcd_show_int16(OutputPorts); lcd_show_digit(3); BusyPauseMS(3000); PortB(OnNeg); lcd_show_int16(OutputPorts); lcd_show_digit(4); BusyPauseMS(3000); PortB(Float); lcd_show_int16(OutputPorts); lcd_show_digit(5); BusyPauseMS(3000); } PortA(OnPos); PortC(OnPos); lcd_show_int16(OutputPorts); lcd_show_digit(6); while( ! Running ); RCX_Reset(); }