MIP8 Frame buffer sample. Color display

Dependencies:   MIP8F_SPI mbed

Fork of MIP8f_FRDM_sample by JapanDisplayInc

Introduction

This Wiki page describes how to use the sample code to evaluate JDI_MIP. For JDI_MIP, please refer to the following Wiki page

https://os.mbed.com/teams/JapanDisplayInc/wiki/MIP-Reflective-type-Color-Display

https://os.mbed.com/teams/JapanDisplayInc/wiki/SPI_MIP8

Constitution

  • FRDM-K64F(NXP)
  • JDI_MIP Panel
  • JDI_MIP Interface board.

Usage

1. Get MIP-panel, and JDI_MIP Interface Board, FRDM-K64F(NXP).

/media/uploads/STakayama/mip8_imagesample_withboard1.jpg

2. Import into compiler & Compile Program.

/media/uploads/JDI_Mbed_Team/anordertodownloadthesamplecodecompilerunonthetargetboard_u3lVTcw.pdf

3. Copy Setting File and Image to micro SD-CARD.

a) Download the following file corresponding to the target panel, and rename file identifier (.bin -> .zip), and unzip the file on micro SD Card's root directory.

ex.) in case of LPM044M141x (640x480) : /media/uploads/JDI_Mbed_Team/sd_files141_sample.png

b) Insert micro SD-CARD to FRDM-K64F.

4. Upload binary file to FRDM-K64F.and push Reset Button.

Interface board

  • Get from Switch Science
  • Schematic/Parts list
  • Gerber data(rename bin->zup, and unzip)

/media/uploads/STakayama/jdi_mip8_lcd_last.pdf

/media/uploads/STakayama/jdi-mip-pcb_partslist.pdf

/media/uploads/STakayama/jdi_mip8_lcd_last.bin

  • Rename .bin to .zip,and unzip -> gerber data files.

/media/uploads/STakayama/mip_board_detail.jpg

FRDM Pin(Port) assign

/media/uploads/STakayama/frdm_port.jpg

Program Overview

/media/uploads/STakayama/sw_flow.jpg

Sample Code (.bin)

/media/uploads/JDI_Mbed_Team/mip8f_frdm_sample.k64f.bin

  • MIP8f_FRDM_sample demo

Special Thanks

  • ARM mbed team
  • NXP for FRDM-K64F
  • Switch Science for Interface Board
  • Adafruit Industries for Adafruit_LEDBackpack.
  • Neil Thiessen for SDFileSystem.
  • MikroElektronika for GLCD Font
  • Many developers

Adafruit_LEDBackpack/Adafruit_LEDBackpack.h

Committer:
JDI_Mbed_Team
Date:
2018-10-22
Revision:
4:55477a21ace1
Parent:
0:33fe30a2b785

File content as of revision 4:55477a21ace1:

/*************************************************** 
  This is a library for our I2C LED Backpacks

  Designed specifically to work with the Adafruit LED Matrix backpacks 
  ----> http://www.adafruit.com/products/
  ----> http://www.adafruit.com/products/

  These displays use I2C to communicate, 2 pins are required to 
  interface. There are multiple selectable I2C addresses. For backpacks
  with 2 Address Select pins: 0x70, 0x71, 0x72 or 0x73. For backpacks
  with 3 Address Select pins: 0x70 thru 0x77

  Adafruit invests time and resources providing this open source code, 
  please support Adafruit and open-source hardware by purchasing 
  products from Adafruit!

  Written by Limor Fried/Ladyada for Adafruit Industries.  
  BSD license, all text above must be included in any redistribution
 ****************************************************/
 
 /*
 *  Modified by Luiz Hespanha (http://www.d3.do) 8/16/2013 for use in LPC1768
 */

#include "mbed.h"
#include "Adafruit_GFX.h"

#define LED_ON 1
#define LED_OFF 0

#define LED_RED 1
#define LED_YELLOW 2
#define LED_GREEN 3
 


#define HT16K33_BLINK_CMD 0x80
#define HT16K33_BLINK_DISPLAYON 0x01
#define HT16K33_BLINK_OFF 0
#define HT16K33_BLINK_2HZ  1
#define HT16K33_BLINK_1HZ  2
#define HT16K33_BLINK_HALFHZ  3

#define HT16K33_CMD_BRIGHTNESS 0x0E

// this is the raw HT16K33 controller
class Adafruit_LEDBackpack {
 public:
  Adafruit_LEDBackpack(I2C *i2c);
  void begin(uint8_t _addr);
  void setBrightness(uint8_t b);
  void blinkRate(uint8_t b);
  void writeDisplay(void);
  void clear(void);

  uint16_t displaybuffer[8]; 

  void init(uint8_t a);

  protected:
    I2C *_i2c;
  
 private:
  uint8_t i2c_addr;
};

class Adafruit_8x8matrix : public Adafruit_LEDBackpack, public Adafruit_GFX {
 public:
  Adafruit_8x8matrix(I2C *i2c);

  void drawPixel(int16_t x, int16_t y, uint16_t color);

 private:
};