Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed EthernetNetIf HTTPClient
Fork of SimpleLib_03272011 by
Diff: mbedGC/mbedgc.h
- Revision:
- 0:011be8250218
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbedGC/mbedgc.h Sat Apr 02 23:23:07 2011 +0000 @@ -0,0 +1,34 @@ + +#include "mbed.h" +#include "colors.h" +#include "timers.h" +#include "I2CConfig.h" +#include "WiiClassicControllerReader.h" + +#define fbW 121//121 is max//129 +#define fbH 121//121 + +DigitalOut vSync(p29); +DigitalOut hSync(p30); +DigitalOut soundPin(p18); + +int soundNote = 4000; +int soundNoteHalf = 2000; +unsigned int hsync_count = 0x80000; +int hsync_count_adder = 1; +int logic_count = 0; + +//Serial pc(USBTX, USBRX); +DigitalOut led1(LED1); + +WiiClassicControllerReader ctrlrA(I2CPort_A::SDA, I2CPort_A::SCL); + +void fill(unsigned char); +void setup(); +void loop(); +void blankFB(); +int getButton(WiiClassicControllerReader* const ctrlr); +void drawRectangle(int x, int y, int width, int height, unsigned char color); + +unsigned int frame = 0; +unsigned char framebuffer[fbH][fbW]; \ No newline at end of file
