Mbed 4dGenie class

Dependents:   Genie_Test 039847382-S3_DS1621_and_LCD_V1

This is a work in progress.

4dGenie class to use with 4dLCD screens that are using the genie environment.

There are still some rare occasions where the 4dLCD might crash, for now i have no solution to this except doing a reset of the 4dLCD.

Please make sure to have the most up to date PmmC loaded on the screen.

usage example :

Mbed4dGenie test program

#include "mbed.h"
#include "mbed_genie.h"

DigitalOut myled(LED1);
/*
    The Mbed4dGenie class requires 3 parameters
    1 - Tx pin
    2 - Rx pin
    3 - Reset pin
*/
Mbed4dGenie lcd4d(PTE0,PTE1,PTB9);



int main() {
    int temp = 0;
printf("Mbed Genie demo \n\r");
lcd4d.Start();


 /*
 for example, in this loop we increment the thermometer0 object from 0 to 100
 */
 
    while(1) {
        if(temp >= 100)
        {
            temp = -1;
        }
        else
        {
            temp++;
        }

        lcd4d.genieWriteObject(GENIE_OBJ_LED_DIGITS,1,temp);

        myled = 1;
        wait(0.05);
        myled = 0;
        wait(0.05);
    }
}

History

Added new constructor overload with the option to specify the baud rate to use (Mbed side only) default tip

2015-03-04, by chris215 [Wed, 04 Mar 2015 03:00:40 +0000] rev 11

Added new constructor overload with the option to specify the baud rate to use (Mbed side only)


Added missing method "genieGetEventData"

2014-07-08, by chris215 [Tue, 08 Jul 2014 18:34:47 +0000] rev 10

Added missing method "genieGetEventData"


Improved stability. Improved communication errors handling.

2014-07-08, by chris215 [Tue, 08 Jul 2014 15:52:26 +0000] rev 9

Improved stability. Improved communication errors handling.


Improve stability when using obj read commands and listening to Genie events.

2014-07-06, by chris215 [Sun, 06 Jul 2014 17:22:32 +0000] rev 8

Improve stability when using obj read commands and listening to Genie events.


Restored rx by interrupt feature. Added following features : read_obj, write_str, userHandler callback when frame is received. Ran stable for 12 hours.

2014-07-05, by chris215 [Sat, 05 Jul 2014 15:11:57 +0000] rev 7

Restored rx by interrupt feature. Added following features : read_obj, write_str, userHandler callback when frame is received. Ran stable for 12 hours.


Redesign of the 4dGENIE class. Right now, the class is only capable of writting to screen objects(excluding string objects)

2014-07-04, by chris215 [Fri, 04 Jul 2014 02:44:49 +0000] rev 6

Redesign of the 4dGENIE class. Right now, the class is only capable of writting to screen objects(excluding string objects)


changed default speed to 115200 bauds

2014-06-18, by chris215 [Wed, 18 Jun 2014 01:02:45 +0000] rev 5

changed default speed to 115200 bauds


fixed reset pin behavior

2014-02-23, by chris215 [Sun, 23 Feb 2014 18:01:55 +0000] rev 4

fixed reset pin behavior


Added reset pin to the class

2014-02-23, by chris215 [Sun, 23 Feb 2014 17:32:37 +0000] rev 3

Added reset pin to the class


Completed conversion to a class (untested)

2014-02-23, by chris215 [Sun, 23 Feb 2014 01:34:05 +0000] rev 2

Completed conversion to a class (untested)