31 Mar '16, 2am

7 Steps to Draw Images on Your #RePhone#

7 Steps to Draw Images on Your #RePhone#

#include "vmsystem.h" #include "vmlog.h" #include "vmcmd.h" #include "vmtimer.h" #include "ldisplay.h" #include "ldlcgpio.h" #include "stdio.h" #include "ResID.h" #include "Draw Image on RePhone.h" #define RLED_GPIO 17 #define GLED_GPIO 15 #define BLED_GPIO 12 VM_TIMER_ID_PRECISE sys_timer_id = 0; unsigned char sys_blink = 0; unsigned char pic_number = 1; void sys_timer_callback(VM_TIMER_ID_PRECISE sys_timer_id, void* user_data) { if(sys_blink)digitalWrite(GLED_GPIO, 1); else digitalWrite(GLED_GPIO, 0); sys_blink = !sys_blink; lcd_image_draw(pic_number++); if(pic_number > 2)pic_number = 1; } void sys_gpio_init(void) { pinMode(RLED_GPIO,OUTPUT); pinMode(GLED_GPIO,OUTPUT); pinMode(BLED_GPIO,OUTPUT); digitalWrite(RLED_GPIO, 0); digitalWrite(GLED_GPIO, 1); digitalWrite(BLED_GPIO, 0); } void handle_sysevt(VMINT message, VMINT param) { switch (message) { case VM_EVENT_CREATE: vm...

Full article: http://www.seeedstudio.com/recipe/1184-draw-images-on-you...

Tweets

30 Mar-24 Apr 2016: UEFA Euro Cup 2016 Online L...

sg.everydayonsales.com 30 Mar '16, 9am

Check Out the UEFA Euro Cup 2016 Online Lucky Draw By Hyundai Singapore. Enjoy and stand a chance to win a limited edition...

New Images Of The Nike Air Foamposite Pro Wu-Tang

New Images Of The Nike Air Foamposite Pro Wu-Tang

kicksonfire.com 31 Mar '16, 2am

A couple of weeks we got our first look at the Nike Air Foamposite One Wu-Tang colorway that was rumored to release since ...