
This is a remote control tester, it uses a CNC, Ethernet Communication with a JAVAFX interface and a PLC in order to control some valves.
Dependencies: EthernetInterface mbed-rtos mbed
Fork of CNC_CONTROLLER by
PCF8574.h@2:835c883d81b0, 2017-12-15 (annotated)
- Committer:
- kevencastro7
- Date:
- Fri Dec 15 19:40:41 2017 +0000
- Revision:
- 2:835c883d81b0
This is a remote control tester, it uses a CNC, Ethernet Communication with a JAVAFX interface and a PLC in order to control some valves.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kevencastro7 | 2:835c883d81b0 | 1 | #include "mbed.h" |
kevencastro7 | 2:835c883d81b0 | 2 | |
kevencastro7 | 2:835c883d81b0 | 3 | #ifndef MBED_PCF8574_H |
kevencastro7 | 2:835c883d81b0 | 4 | #define MBED_PCF8574_H |
kevencastro7 | 2:835c883d81b0 | 5 | |
kevencastro7 | 2:835c883d81b0 | 6 | class PCF8574 { |
kevencastro7 | 2:835c883d81b0 | 7 | public: |
kevencastro7 | 2:835c883d81b0 | 8 | PCF8574(PinName sda, PinName scl, int address); |
kevencastro7 | 2:835c883d81b0 | 9 | int read(int); |
kevencastro7 | 2:835c883d81b0 | 10 | void write(int data); |
kevencastro7 | 2:835c883d81b0 | 11 | private: |
kevencastro7 | 2:835c883d81b0 | 12 | I2C _i2c; |
kevencastro7 | 2:835c883d81b0 | 13 | int _address; |
kevencastro7 | 2:835c883d81b0 | 14 | }; |
kevencastro7 | 2:835c883d81b0 | 15 | |
kevencastro7 | 2:835c883d81b0 | 16 | #endif |