Code Monkey home page Code Monkey logo

psoc_ugui's Introduction

PSoC uGui: Adding graphics to Cypress PSoC microcontrollers.

For one of my projects i need to add one of those 1.8" cheap graphics display. For the project, i am using the uGui library developed by Achim Döbler. You can find information about uGui in his webpage:

Repository.

  • PSoC_uGui_Library: uGui library.
  • PSoC_uGui_Drivers: driver for the ST7735 graphics controller.
  • Examples:
    • PSoC4_SPI_SCB: demo/testing project for PSoc 4 microcontroller using a SCB SPI component.
    • PSoC4_SPI_UDB: demo/testing project for PSoc 4 microcontroller using a UDB SPI component.
    • PSoC5LP_uGui: demo/testing project for PSoC 5LP.

Examples for PSoC 4 has been developed using a Cypress development kit CY8CKIT-042 PSoC 4 Pioneer Kit. Example for PSoC 5LP has been developed using a Cypress development kit CY8CKIT-059.

If you want to try the examples directly connect the display to the board as follows:

Display PSoC 4 board PSoC 5LP board Signal
RST P0.0 P0.4 Display reset
CS P3.4 P2.0 SPI SS
D/C P3.7 P0.5 Data/Command mode
DIN P3.0 P12.3 SPI MOSI
CLK P0.6 P12.4 SPI SCLK
VCC 3.3 V ext 3.3V
GND GND GND
BL 3.3V ext 3.3V Back Light

Remember that this kind of displays works at 3.3V. If you are using a display like mine, probably it has an on board voltage regulator and a jumper you can use to configure the display to work at 5V or 3.3V Remember to configure your PSoC board accordingly to the voltage of your display and don´t forget, that if you use 5V, you will need some kind of level adapter at digital signals.

alt tag

Configuration.

uGui is configured in "ugui_config.h" file. Follow instructions in the reference guide to configure the uGui library. To configure the ST7735 driver, read instructions at the top of file "ugui_st7735.h"

Known issues.

Actually i am using PSoC Creator version 3.3 CP2 with ARM GCC 4.9.

I don´t know why, but if i use code optimization during compilation, nothing works. For now, code optimizations have to be deactivated for both "debug" and "release" configurations. It is something i have to investigate when i have the time to do it.

To deactivate code optimization in PSoC Creator, in left panel (Workspace Explorer), right click the project. Select "build settings" and then in 'ARM GCC 4.9...' -> 'Optimization' -> 'Optimization level', select NONE for "debug" and also for "release".

psoc_ugui's People

Contributors

hackingchips avatar

Stargazers

Samuele avatar

Watchers

James Cloos avatar  avatar  avatar  avatar

Forkers

sam-wang robybam

psoc_ugui's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.