Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
cs_CR01R02v4.h File Reference
#include <cfg/cs_Boards.h>
#include <cfg/cs_DeviceTypes.h>
Include dependency graph for cs_CR01R02v4.h:

Go to the source code of this file.

Functions

void asCR01R02v4 (boards_config_t *config)
 This is a smart outlet. More...
 

Function Documentation

◆ asCR01R02v4()

void asCR01R02v4 ( boards_config_t config)

This is a smart outlet.

  • There is no dimmer.
  • There is no temperature measured near the dimmer.
  • There is zero-crossing detect for both voltage and current.
  • There is a shutter as binary input.
  • There is an RGB led, R pinLed[0], G pinLed[1], B pinLed[2].
  • There is a touch input. This also needs to be enabled.
  • There is NOR flash available.

We are still in a testing phase.

  • The first GPIO pin is set to the line that has to be enabled for the touch sensor.
  • The second button is set to the touch sensor

It's easy to test with a microapp. That doesn't require changing code in the firmware itself. In a microapp first set pinGpio[0] or (P1.00) to true and start listening to BUTTON2 (P0.08).

The shutter is placed on pinGpio[1].

The zero-crossings are placed on gpio 2 and 3 (should be configured as inputs). Note that this is propagated through the firmware towards the microapp. That won't be fast enough to do something real-time with it.