soft/lpc122x/examples
2 years agoAdd MQTT publish example README
Nathael Pajani [Sun, 10 Mar 2019 13:23:51 +0000 (14:23 +0100)]
Add MQTT publish example README

2 years agoSplit mqtt publish example in two files.
Nathael Pajani [Sun, 10 Mar 2019 13:23:35 +0000 (14:23 +0100)]
Split mqtt publish example in two files.

2 years agoIncrement publish packet id, as to consecutive packet must not have the same packet...
Nathael Pajani [Sun, 10 Mar 2019 12:46:43 +0000 (13:46 +0100)]
Increment publish packet id, as to consecutive packet must not have the same packet ID Fix return values.

2 years agoRename publisher example, in order to differentiate from subscriber one
Nathael Pajani [Sun, 10 Mar 2019 12:38:18 +0000 (13:38 +0100)]
Rename publisher example, in order to differentiate from subscriber one

2 years agoSample RTC code (PCF85363 from NXP)
Nathael Pajani [Tue, 5 Mar 2019 14:35:58 +0000 (15:35 +0100)]
Sample RTC code (PCF85363 from NXP)

2 years agoUpdate all files to mention version 3 of the GPL.
Nathael Pajani [Thu, 21 Feb 2019 15:34:16 +0000 (16:34 +0100)]
Update all files to mention version 3 of the GPL.

2 years agoTypo in comments
Nathael Pajani [Thu, 3 Jan 2019 16:48:33 +0000 (17:48 +0100)]
Typo in comments

2 years agoFix comment to match code
Nathael Pajani [Sat, 1 Dec 2018 13:17:41 +0000 (14:17 +0100)]
Fix comment to match code

2 years agoUse commands from serial rather than ADC input Use channel 0 Use "non-inverted" output
Nathael Pajani [Sat, 1 Dec 2018 13:16:15 +0000 (14:16 +0100)]
Use commands from serial rather than ADC input Use channel 0 Use "non-inverted" output

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 agoRemove code related to ws2812 leds (do not mix examples in base when possible)
Nathael Pajani [Mon, 19 Jun 2017 16:28:34 +0000 (18:28 +0200)]
Remove code related to ws2812 leds (do not mix examples in base when possible)

2 years agoAdding Exanh weather sensors board example.
Nathael Pajani [Fri, 12 May 2017 23:08:46 +0000 (01:08 +0200)]
Adding Exanh weather sensors board example.

2 years agoAdding SD Card Read/Write example.
Nathael Pajani [Fri, 12 May 2017 23:07:24 +0000 (01:07 +0200)]
Adding SD Card Read/Write example.

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 agoOled ssd130x example.
Nathael Pajani [Sun, 19 Mar 2017 18:35:49 +0000 (19:35 +0100)]
Oled ssd130x example.

2 years agoUse new font for epaper example
Nathael Pajani [Sun, 16 Oct 2016 15:33:44 +0000 (17:33 +0200)]
Use new font for epaper example

2 years agoSimple Deep power down example.
Nathael Pajani [Mon, 3 Oct 2016 15:13:03 +0000 (17:13 +0200)]
Simple Deep power down example.

2 years agoAdding VEML6070 I2C UV sensor example application
Nathael Pajani [Tue, 27 Sep 2016 21:52:50 +0000 (23:52 +0200)]
Adding VEML6070 I2C UV sensor example application

2 years agoUpdated according to new ADC driver API Updated Comments Updated according to new...
Nathael Pajani [Tue, 27 Sep 2016 21:44:30 +0000 (23:44 +0200)]
Updated according to new ADC driver API Updated Comments Updated according to new header files Updated use of uprintf and UART* instead of snprintf + serial_write(0, ...)

2 years agoUpdated Comments Updated according to new header files Updated use of uprintf and...
Nathael Pajani [Tue, 27 Sep 2016 21:44:01 +0000 (23:44 +0200)]
Updated Comments Updated according to new header files Updated use of uprintf and UART* instead of snprintf + serial_write(0, ...)

2 years agoUpdated according to new Timers driver API Updated according to new ADC driver API...
Nathael Pajani [Tue, 27 Sep 2016 21:43:37 +0000 (23:43 +0200)]
Updated according to new Timers driver API Updated according to new ADC driver API Updated Comments Updated according to new header files Updated use of uprintf and UART* instead of snprintf + serial_write(0, ...)

2 years agoUpdated according to new ADC driver API Updated Comments Updated according to new...
Nathael Pajani [Tue, 27 Sep 2016 21:42:33 +0000 (23:42 +0200)]
Updated according to new ADC driver API Updated Comments Updated according to new header files Updated use of uprintf and UART* instead of snprintf + serial_write(0, ...)

2 years agoUpdated Comments Updated according to new header files Updated use of uprintf and...
Nathael Pajani [Tue, 27 Sep 2016 21:41:18 +0000 (23:41 +0200)]
Updated Comments Updated according to new header files Updated use of uprintf and UART* instead of snprintf + serial_write(0, ...)

2 years agoUpdated according to new I2C driver API Updated Comments Updated according to new...
Nathael Pajani [Tue, 27 Sep 2016 21:41:03 +0000 (23:41 +0200)]
Updated according to new I2C driver API Updated Comments Updated according to new header files Updated use of uprintf and UART* instead of snprintf + serial_write(0, ...)

2 years agoUpdated Comments Updated according to new header files Updated use of uprintf and...
Nathael Pajani [Tue, 27 Sep 2016 21:35:28 +0000 (23:35 +0200)]
Updated Comments Updated according to new header files Updated use of uprintf and UART* instead of snprintf + serial_write(0, ...)

2 years agoUpdated according to new Timers driver API Updated Comments Updated according to...
Nathael Pajani [Tue, 27 Sep 2016 21:35:18 +0000 (23:35 +0200)]
Updated according to new Timers driver API Updated Comments Updated according to new header files Updated use of uprintf and UART* instead of snprintf + serial_write(0, ...)

2 years agoUpdated according to new I2C driver API Updated Comments Updated according to new...
Nathael Pajani [Tue, 27 Sep 2016 21:34:57 +0000 (23:34 +0200)]
Updated according to new I2C driver API Updated Comments Updated according to new header files Updated use of uprintf and UART* instead of snprintf + serial_write(0, ...)

2 years agoUpdated according to new ADC driver API Updated Comments Updated according to new...
Nathael Pajani [Tue, 27 Sep 2016 21:33:55 +0000 (23:33 +0200)]
Updated according to new ADC driver API Updated Comments Updated according to new header files Updated use of uprintf and UART* instead of snprintf + serial_write(0, ...)

2 years agoimprovements to watchdog example
Nathael Pajani [Tue, 26 Apr 2016 23:02:43 +0000 (01:02 +0200)]
improvements to watchdog example

2 years agoServo-motor control example
Nathael Pajani [Tue, 26 Apr 2016 22:55:52 +0000 (00:55 +0200)]
Servo-motor control example

2 years agoSmall fixes on ultrasonic sensor example - typo - message on UART - Use GPIO availabl...
Nathael Pajani [Tue, 26 Apr 2016 22:40:26 +0000 (00:40 +0200)]
Small fixes on ultrasonic sensor example - typo - message on UART - Use GPIO available on both GPIO-Demo and LPC1224-BO modules

2 years agoImprovements for eeprom example
Nathael Pajani [Fri, 5 Feb 2016 16:52:11 +0000 (17:52 +0100)]
Improvements for eeprom example

2 years agoWatchdog example (using ADC example as base).
Nathael Pajani [Mon, 23 Nov 2015 12:21:21 +0000 (13:21 +0100)]
Watchdog example (using ADC example as base).

2 years agouse startup_watchdog_disable() instead of stop_watchdog() upon startup.
Nathael Pajani [Mon, 23 Nov 2015 12:05:51 +0000 (13:05 +0100)]
use startup_watchdog_disable() instead of stop_watchdog() upon startup.

2 years agoMove the host app for microphone to the right app directory ...
nathael Pajani [Thu, 19 Nov 2015 14:09:02 +0000 (15:09 +0100)]
Move the host app for microphone to the right app directory ...

2 years agoCommit of the simple ADC Rx test, used for audio sampling.
Nathael Pajani [Tue, 10 Nov 2015 20:36:09 +0000 (21:36 +0100)]
Commit of the simple ADC Rx test, used for audio sampling.

2 years agoAdding a new mode to the led strip example
Nathael Pajani [Thu, 1 Oct 2015 20:02:01 +0000 (22:02 +0200)]
Adding a new mode to the led strip example

2 years agomove code to use uprintf instead of snprintf+serial_write
Gabriel Huau [Thu, 27 Aug 2015 04:48:59 +0000 (21:48 -0700)]
move code to use uprintf instead of snprintf+serial_write

This simplify a lot the code to output anything on any UART.

2 years agoThese got lost in the merge, moves, and Makefiles modifications for the new directory...
Nathael Pajani [Thu, 10 Sep 2015 08:29:14 +0000 (10:29 +0200)]
These got lost in the merge, moves, and Makefiles modifications for the new directory organisation.

2 years agoModify all base apps Makefiles according to the new subdirectory scheme
Nathael Pajani [Wed, 9 Sep 2015 20:11:58 +0000 (22:11 +0200)]
Modify all base apps Makefiles according to the new subdirectory scheme

2 years agoMove all base apps to a base subdirectory in apps. This prepares for merge of modules...
Nathael Pajani [Wed, 9 Sep 2015 20:10:01 +0000 (22:10 +0200)]
Move all base apps to a base subdirectory in apps. This prepares for merge of modules branches, which will instead have their own subdirectory, preventing the hasle of cherry-picking common code to each and every branch. Warning : Makefile modifications according to these moves will be in the next commit !