Control/monitor four switches with buttons/leds.
based on MQTT/UDP protocol.
To configure topic names for switches, see mqtt_map.c
:
struct mqtt_io mqm[] =
{
{ "Light5A", 0 },
{ "Light5B", 1 },
{ "Light1A", 2 },
{ "Light1B", 3 },
};
String is a topic name, number is channel (button number).
MMNET01 Atmega128 board with ethernet.
- 0-3 - front panel LEDs
- 4,6 - relays (not finished)
- 5 - (used in mmnet, data flash CS)
- 7 - LCD backlight PWM
- 0-3 - Front panel buttons
- 2,3 - (unused, UART1)
- 6-7 - Di (not finished)
- 0 - LCD E
- 1 - LCD R/W
- 2 - LCD R/S
- 3 - (TODO fail LED)
- 4 - Encoder button
- 5 - (used in mmnet, ethernet interrupt)
- 6,7 - Encoder rotation
- 0-7 - LCD data bus (0-3 in 4 bit mode as LCD DB4-7 )
- 3 - Activity LED
- 4 - 1Wire (single, 2401 serial/MAC)
In current build LCD, encoder and 1Wire is not finished and not compiled in.