MQTT example using the Freescale FRDM-K64F platform without additional hardware.
Dependencies: EthernetInterface MQTT mbed-rtos mbed HC_SR04_Ultrasonic_Library
Fork of K64F-RTOS-MQTT-Example by
k64f.h
- Committer:
- sim2egor
- Date:
- 2017-08-09
- Revision:
- 3:e33c80165703
- Parent:
- 0:9796509d718e
File content as of revision 3:e33c80165703:
#ifndef K64F_H_
#define K64F_H_
typedef enum color {off, red, green, blue} color_t;
Serial pc(USBTX, USBRX);
DigitalOut redLED(LED_RED);
DigitalOut greenLED(LED_GREEN);
DigitalOut blueLED(LED_BLUE);
InterruptIn switch2(SW2);
InterruptIn switch3(SW3);
#endif // K64F.H
