a library for laser printer based on https://os.mbed.com/users/xmwmx/code/wmx_laser_copy/
Dependents: Example_for_learning_easy
laser.h@1:9cfdf3c372b5, 2018-10-16 (annotated)
- Committer:
- Dennis_Yu
- Date:
- Tue Oct 16 06:42:48 2018 +0000
- Revision:
- 1:9cfdf3c372b5
- Parent:
- 0:5e881997f4b5
- Child:
- 2:35089485bc89
add a laser class
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Dennis_Yu | 0:5e881997f4b5 | 1 | #ifndef LASER_H |
Dennis_Yu | 0:5e881997f4b5 | 2 | #define LASER_H |
Dennis_Yu | 0:5e881997f4b5 | 3 | |
Dennis_Yu | 0:5e881997f4b5 | 4 | #include "mbed.h" |
Dennis_Yu | 0:5e881997f4b5 | 5 | #include <math.h> |
Dennis_Yu | 0:5e881997f4b5 | 6 | #include <cstring> |
Dennis_Yu | 0:5e881997f4b5 | 7 | #include <stdlib.h> |
Dennis_Yu | 0:5e881997f4b5 | 8 | #include "SDFileSystem.h" |
Dennis_Yu | 0:5e881997f4b5 | 9 | #include "esp8266.h" |
Dennis_Yu | 0:5e881997f4b5 | 10 | |
Dennis_Yu | 1:9cfdf3c372b5 | 11 | extern Serial ser2usb; |
Dennis_Yu | 0:5e881997f4b5 | 12 | |
Dennis_Yu | 1:9cfdf3c372b5 | 13 | class laser |
Dennis_Yu | 1:9cfdf3c372b5 | 14 | { |
Dennis_Yu | 1:9cfdf3c372b5 | 15 | public: |
Dennis_Yu | 1:9cfdf3c372b5 | 16 | laser(Esp8266 & iClient); |
Dennis_Yu | 1:9cfdf3c372b5 | 17 | private: |
Dennis_Yu | 1:9cfdf3c372b5 | 18 | Esp8266 & client; |
Dennis_Yu | 1:9cfdf3c372b5 | 19 | }; |
Dennis_Yu | 0:5e881997f4b5 | 20 | |
Dennis_Yu | 0:5e881997f4b5 | 21 | #endif |