Example Code

All examples can be found in the link below:

Example repositories link

All examples are in repositories 'som_examples' and 'proto_examples'.

They include:

  • accel - for a simple onboard accelerometer demo (only in Proto)

  • adc - for a simple potentiometer AD converter demo

  • battery - for a simple onboard battery voltage measurement demo

  • blinky - for a simple led blink demo

  • button - for a simple onboard button click event demo

  • flash - for a simple onboard flash demo (only in Proto)

  • gnss - for a simple gps demo

  • helloworld - for a simple hello world log demo

  • led_pwm - for a simple example of LED brightness control using PWM

  • mqtt - for a simple mqtt example of using MQTT Explorer

  • tcp - for a simple tcp example of communicate with echo server

  • temperature - for a simple onboard temperature measurement demo (only in Proto)

  • test_pins - for a simple LOW/HIGH test of GPIO pins

  • udp - for a simple udp example of communicate with echo server

More examples are coming soon!

After pull the project, you need to add build file.

Example - Hello World

Select the SDK and Toolchain that you will use and select 'cocolinx_dev9151/nrf9151/ns' and put 'prj.conf' in Base configuration files.

Example - Hello World

After build the project you can flash the project to device.

If you see log like this, the flash has completed successfully.