program to test screen of the Rioux group computer card
Dependencies: CHEM_CONTROL mbed
main.cpp@0:844ccaebaa94, 2014-07-08 (annotated)
- Committer:
- riouxgroup
- Date:
- Tue Jul 08 13:58:11 2014 +0000
- Revision:
- 0:844ccaebaa94
something is "off" but I am not sure what
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
riouxgroup | 0:844ccaebaa94 | 1 | #include "mbed.h" |
riouxgroup | 0:844ccaebaa94 | 2 | #include "CHEM_BOX_INTERFACE.h" |
riouxgroup | 0:844ccaebaa94 | 3 | |
riouxgroup | 0:844ccaebaa94 | 4 | |
riouxgroup | 0:844ccaebaa94 | 5 | int main() |
riouxgroup | 0:844ccaebaa94 | 6 | { |
riouxgroup | 0:844ccaebaa94 | 7 | int i; |
riouxgroup | 0:844ccaebaa94 | 8 | InitChemBox(); |
riouxgroup | 0:844ccaebaa94 | 9 | |
riouxgroup | 0:844ccaebaa94 | 10 | for(i=0; i<6; i++) |
riouxgroup | 0:844ccaebaa94 | 11 | { |
riouxgroup | 0:844ccaebaa94 | 12 | Buzz(.5); |
riouxgroup | 0:844ccaebaa94 | 13 | wait(.1); |
riouxgroup | 0:844ccaebaa94 | 14 | } |
riouxgroup | 0:844ccaebaa94 | 15 | |
riouxgroup | 0:844ccaebaa94 | 16 | |
riouxgroup | 0:844ccaebaa94 | 17 | |
riouxgroup | 0:844ccaebaa94 | 18 | |
riouxgroup | 0:844ccaebaa94 | 19 | SmartSwitch_SetBackLightColor(3, 3, 3); |
riouxgroup | 0:844ccaebaa94 | 20 | GFX_FullDissplayBufferClear(&BackBuffer); |
riouxgroup | 0:844ccaebaa94 | 21 | GFX_DrawLine(&BackBuffer, 0,0, PHYSICAL_DISPLAY_XRES - 1, 0); |
riouxgroup | 0:844ccaebaa94 | 22 | GFX_DrawLine(&BackBuffer, PHYSICAL_DISPLAY_XRES - 1,0,PHYSICAL-DISPLAYXRES - 1 ,PHYSICAL-DISPLAY-YRES - 1); |
riouxgroup | 0:844ccaebaa94 | 23 | } |