A platform to create a remote control with display for a 10hp up-cut saw that cuts aluminum, plastic and other materials. It is controlled by a Variable Frequency Drive (VFD) which is mounted at the back of the saw, making it inconvenient to change the blade speed to match the material being cut.

Dependencies:   Grove_LCD_RGB_Backlight mbed

Fork of Grove_LCD_RGB_Backlight_HelloWorld by Chandler Matz

Committer:
cmatz3
Date:
Tue Mar 15 17:21:58 2016 +0000
Revision:
0:be3b212d1b17
Child:
1:64466c2ec269
initial commit;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
cmatz3 0:be3b212d1b17 1 #include "Grove_LCD_RGB_Backlight.h"
cmatz3 0:be3b212d1b17 2 #include "mbed.h"
cmatz3 0:be3b212d1b17 3
cmatz3 0:be3b212d1b17 4 Grove_LCD_RGB_Backlight rgbLCD(p9, p10);
cmatz3 0:be3b212d1b17 5 //I2C i2c(p9, p10);
cmatz3 0:be3b212d1b17 6 //Serial pc(USBTX, USBRX);
cmatz3 0:be3b212d1b17 7
cmatz3 0:be3b212d1b17 8 int main()
cmatz3 0:be3b212d1b17 9 {
cmatz3 0:be3b212d1b17 10
cmatz3 0:be3b212d1b17 11 rgbLCD.setRGB(0xff, 0xff, 0xff); //set the color
cmatz3 0:be3b212d1b17 12 rgbLCD.print("Hello World!");
cmatz3 0:be3b212d1b17 13 rgbLCD.locate(0,1);
cmatz3 0:be3b212d1b17 14 rgbLCD.print("This is a test");
cmatz3 0:be3b212d1b17 15 wait(5);
cmatz3 0:be3b212d1b17 16 int count = 0;
cmatz3 0:be3b212d1b17 17 while(1)
cmatz3 0:be3b212d1b17 18 {
cmatz3 0:be3b212d1b17 19 if (count == 0)
cmatz3 0:be3b212d1b17 20 {
cmatz3 0:be3b212d1b17 21 rgbLCD.setRGB(0xff, 0x00, 0x00);
cmatz3 0:be3b212d1b17 22 }
cmatz3 0:be3b212d1b17 23 else if (count == 1)
cmatz3 0:be3b212d1b17 24 {
cmatz3 0:be3b212d1b17 25 rgbLCD.setRGB(0x00, 0xff, 0x00);
cmatz3 0:be3b212d1b17 26 }
cmatz3 0:be3b212d1b17 27 else if (count == 2)
cmatz3 0:be3b212d1b17 28 {
cmatz3 0:be3b212d1b17 29 rgbLCD.setRGB(0x00, 0x00, 0xff);
cmatz3 0:be3b212d1b17 30 }
cmatz3 0:be3b212d1b17 31 wait(1);
cmatz3 0:be3b212d1b17 32 count++;
cmatz3 0:be3b212d1b17 33 if(count == 3)
cmatz3 0:be3b212d1b17 34 {
cmatz3 0:be3b212d1b17 35 count = 0;
cmatz3 0:be3b212d1b17 36 }
cmatz3 0:be3b212d1b17 37
cmatz3 0:be3b212d1b17 38 }
cmatz3 0:be3b212d1b17 39 }