soft/lpc122x/scialys
2 years agooled: add support for SPI ssd130x displays
Cyprien Laplace [Sat, 24 Jun 2017 20:47:22 +0000 (16:47 -0400)]
oled: add support for SPI ssd130x displays

For I2C displays, the bus_type needs to be added:

+   .bus_type = SSD130x_BUS_I2C,
    .address = DISPLAY_ADDR,
    .bus_num = I2C0,

To use a SPI display:

1/ add the SSP include:

    #include "drivers/ssp.h"

2/ add the SPI pins to the init table:

    /* SPI : Display */
    { LPC_SSP0_SCLK_PIO_0_14, LPC_IO_DIGITAL },
    { LPC_SSP0_MISO_PIO_0_16, LPC_IO_DIGITAL },
    { LPC_SSP0_MOSI_PIO_0_17, LPC_IO_DIGITAL },

3/ update the oled_display conf:

    .bus_type = SSD130x_BUS_SPI,
    .bus_num = SSP_BUS_0,
    .gpio_dc = LPC_GPIO_0_0,
    .gpio_cs = LPC_GPIO_1_0,
    .gpio_rst = LPC_GPIO_0_31,

4/ initialize the SPI bus:

    ssp_master_on(SSP_BUS_0, LPC_SSP_FRAME_SPI, 8, 8*1000*1000);

2 years agoUpdated for the new ssd130x driver api
David Odin [Wed, 19 Apr 2017 18:38:14 +0000 (20:38 +0200)]
Updated for the new ssd130x driver api

2 years agoAdd a test in apps makefiles to get proper function of :make in vim when the user...
Nathael Pajani [Wed, 19 Apr 2017 00:55:03 +0000 (02:55 +0200)]
Add a test in apps makefiles to get proper function of :make in vim when the user has added "let $COMPILE_FROM_IDE = 1" to his ~/.vimrc

2 years agoLatest version of the test code for the beta version.
Nathael Pajani [Tue, 28 Mar 2017 13:27:39 +0000 (15:27 +0200)]
Latest version of the test code for the beta version.

2 years agoScialys module support going on. Almost all board functions tested (missing : EJP...
Nathael Pajani [Wed, 26 Oct 2016 23:51:00 +0000 (01:51 +0200)]
Scialys module support going on. Almost all board functions tested (missing : EJP detection and µSD card)

2 years agoSupport for beta version of Scialys module - initial commit
Nathael Pajani [Tue, 27 Sep 2016 22:00:26 +0000 (00:00 +0200)]
Support for beta version of Scialys module - initial commit

2 years agoCode for support of alpha version of Scialys module
Nathael Pajani [Tue, 27 Sep 2016 21:58:34 +0000 (23:58 +0200)]
Code for support of alpha version of Scialys module