soft/lpc122x/examples
22 months agoMove host app to host directory and update related symlinks master
Nathael Pajani [Fri, 10 Feb 2023 02:35:44 +0000 (03:35 +0100)]
Move host app to host directory and update related symlinks

22 months agoUpdate symlink
Nathael Pajani [Thu, 9 Feb 2023 23:47:01 +0000 (00:47 +0100)]
Update symlink

22 months agoFixes related to dtplug protocol for hostside udpbridge
Nathael Pajani [Fri, 12 Jun 2020 10:35:25 +0000 (12:35 +0200)]
Fixes related to dtplug protocol for hostside udpbridge

22 months 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.

22 months agoUse include condition to allow inclusion in host code
Nathael Pajani [Thu, 3 Jan 2019 16:50:02 +0000 (17:50 +0100)]
Use include condition to allow inclusion in host code

22 months agoUse the right variable for the test ...
Nathael Pajani [Wed, 27 Apr 2016 20:50:42 +0000 (22:50 +0200)]
Use the right variable for the test ...

22 months agoUpdate for existing and available sensors.
Nathael Pajani [Wed, 27 Apr 2016 20:50:18 +0000 (22:50 +0200)]
Update for existing and available sensors.

22 months agoFix segfault when data pointer is NULL :( Fix Infinite loop when data sent is equal...
Nathael Pajani [Wed, 27 Apr 2016 20:37:05 +0000 (22:37 +0200)]
Fix segfault when data pointer is NULL :( Fix Infinite loop when data sent is equal to size

22 months agoRemove binary file and add to ignore file
Nathael Pajani [Tue, 26 Apr 2016 23:09:55 +0000 (01:09 +0200)]
Remove binary file and add to ignore file

22 months agoUDP to Serial bridge example for access to DTPlug protocol.
Nathael Pajani [Tue, 26 Apr 2016 23:05:29 +0000 (01:05 +0200)]
UDP to Serial bridge example for access to DTPlug protocol.

23 months agoLimited example of AT42QT1012 capacitive touch sensor support
Nathael Pajani [Wed, 8 Feb 2023 02:45:05 +0000 (03:45 +0100)]
Limited example of AT42QT1012 capacitive touch sensor support

23 months agoAdding simple PWM example app
Nathael Pajani [Thu, 11 Jun 2020 18:39:05 +0000 (20:39 +0200)]
Adding simple PWM example app

23 months 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.

23 months 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

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

23 months 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.

23 months 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.

23 months 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

23 months 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 !

23 months 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.

23 months 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

23 months agoUpdated according to new ADC driver API Updated Comments Updated according to new...
Nathael Pajani [Tue, 27 Sep 2016 21:43:06 +0000 (23:43 +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, ...)

23 months 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.

23 months 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 ...

23 months 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

23 months 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 !

23 months agoAdd git repository links for elec and docs to README file
Nathael Pajani [Tue, 24 Jan 2023 18:08:18 +0000 (19:08 +0100)]
Add git repository links for elec and docs to README file

23 months agoUpdate README according to new git repository organisation
Nathael Pajani [Tue, 24 Jan 2023 13:36:33 +0000 (14:36 +0100)]
Update README according to new git repository organisation

2 years agoUpdate uSD card example
Nathael Pajani [Thu, 10 Nov 2022 11:17:08 +0000 (12:17 +0100)]
Update uSD card example

2 years agoAdd common examples README file
Nathael Pajani [Tue, 8 Nov 2022 16:45:44 +0000 (17:45 +0100)]
Add common examples README file

2 years agoadd gitignore for this module
Nathael Pajani [Tue, 8 Nov 2022 16:19:04 +0000 (17:19 +0100)]
add gitignore for this module

2 years agoAdd link to the host side application bridge located in mqtt_pub directory
Nathael Pajani [Tue, 8 Nov 2022 15:47:56 +0000 (16:47 +0100)]
Add link to the host side application bridge located in mqtt_pub directory

2 years agoMove host side app to a sub-directory of the related lpc122x app
Nathael Pajani [Tue, 8 Nov 2022 15:44:38 +0000 (16:44 +0100)]
Move host side app to a sub-directory of the related lpc122x app

2 years agoUpdated comments for servo-motor example
Nathael Pajani [Mon, 7 Nov 2022 20:17:03 +0000 (21:17 +0100)]
Updated comments for servo-motor example

2 years agoUpdated uSD access example.
Nathael Pajani [Mon, 7 Nov 2022 17:00:28 +0000 (18:00 +0100)]
Updated uSD access example.

2 years agoWatchdog example updated with a much mode demonstrative example.
Nathael Pajani [Sat, 5 Nov 2022 02:19:18 +0000 (03:19 +0100)]
Watchdog example updated with a much mode demonstrative example.

2 years agoComplete README file content for test_sensor_env example
Nathael Pajani [Sat, 5 Nov 2022 01:46:47 +0000 (02:46 +0100)]
Complete README file content for test_sensor_env example

2 years agoUpdate servomotor example README file according to code
Nathael Pajani [Sat, 5 Nov 2022 00:34:16 +0000 (01:34 +0100)]
Update servomotor example README file according to code

2 years agoUpdate README file in WS2812 ledstrip example according to driver changes.
Nathael Pajani [Thu, 3 Nov 2022 17:32:51 +0000 (18:32 +0100)]
Update README file in WS2812 ledstrip example according to driver changes.

2 years agoTypo fix in README file of i2c_temp example
Nathael Pajani [Thu, 3 Nov 2022 17:08:01 +0000 (18:08 +0100)]
Typo fix in README file of i2c_temp example

2 years agoUpdated README file in gpio_intr example
Nathael Pajani [Thu, 3 Nov 2022 17:05:00 +0000 (18:05 +0100)]
Updated README file in gpio_intr example

2 years agoAdd comment to ADC example
Nathael Pajani [Thu, 3 Nov 2022 16:53:28 +0000 (17:53 +0100)]
Add comment to ADC example

2 years agorollback a "find/replace" side effect : restore original variable name
Nathael Pajani [Thu, 3 Nov 2022 16:28:39 +0000 (17:28 +0100)]
rollback a "find/replace" side effect : restore original variable name

2 years agoEEPROM example README redaction
Nathael Pajani [Thu, 3 Nov 2022 16:27:03 +0000 (17:27 +0100)]
EEPROM example README redaction

2 years agoSimple systick test/demo app
Nathael Pajani [Mon, 7 Feb 2022 11:08:44 +0000 (12:08 +0100)]
Simple systick test/demo app

2 years agoUpdate GPIO interrupt test application
Nathael Pajani [Thu, 19 Nov 2020 18:49:49 +0000 (19:49 +0100)]
Update GPIO interrupt test application

2 years agoUpdate test app due to driver interface update.
Nathael Pajani [Thu, 19 Nov 2020 18:43:11 +0000 (19:43 +0100)]
Update test app due to driver interface update.

2 years agoFix, temperature is signed, may be below 0°C
Nathael Pajani [Thu, 11 Jun 2020 19:07:08 +0000 (21:07 +0200)]
Fix, temperature is signed, may be below 0°C

2 years agoFix typo in mqtt_sub README
Nathael Pajani [Thu, 11 Apr 2019 20:25:20 +0000 (22:25 +0200)]
Fix typo in mqtt_sub README

2 years agoUpdate MQTT subscribe example to add keep-alive (ping) packets
Nathael Pajani [Thu, 11 Apr 2019 18:18:05 +0000 (20:18 +0200)]
Update MQTT subscribe example to add keep-alive (ping) packets

2 years agoFix publish acknowledge
Nathael Pajani [Sat, 16 Mar 2019 17:37:12 +0000 (18:37 +0100)]
Fix publish acknowledge

2 years agoindentation fix
Nathael Pajani [Sat, 16 Mar 2019 16:38:09 +0000 (17:38 +0100)]
indentation fix

2 years agoAdd subscriber example. Under test.
Nathael Pajani [Sat, 16 Mar 2019 16:36:26 +0000 (17:36 +0100)]
Add subscriber example. Under test.

2 years agoUpdate app to modifications in mqtt protocol support Fix header checksum computation...
Nathael Pajani [Sat, 16 Mar 2019 16:34:33 +0000 (17:34 +0100)]
Update app to modifications in mqtt protocol support Fix header checksum computation Use MQTT_CONTROL_PUBACK instead of MQTT_WAITING_PUBACK convert endianness of acked_pkt_id before using

2 years agoUse struct mqtt_topic for topic names in mqtt_pub example app
Nathael Pajani [Sat, 16 Mar 2019 16:21:32 +0000 (17:21 +0100)]
Use struct mqtt_topic for topic names in mqtt_pub example app

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 !