Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Plotting/Plotting.h@0:64fe0ebc42c6, 2020-11-11 (annotated)
- Committer:
- yeongsookim
- Date:
- Wed Nov 11 22:04:30 2020 +0000
- Revision:
- 0:64fe0ebc42c6
distance sensor
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
yeongsookim | 0:64fe0ebc42c6 | 1 | #ifndef MBED_PLOTTING_H |
yeongsookim | 0:64fe0ebc42c6 | 2 | #define MBED_PLOTTING_H |
yeongsookim | 0:64fe0ebc42c6 | 3 | |
yeongsookim | 0:64fe0ebc42c6 | 4 | #include "mbed.h" |
yeongsookim | 0:64fe0ebc42c6 | 5 | |
yeongsookim | 0:64fe0ebc42c6 | 6 | class Plotting |
yeongsookim | 0:64fe0ebc42c6 | 7 | { |
yeongsookim | 0:64fe0ebc42c6 | 8 | private: |
yeongsookim | 0:64fe0ebc42c6 | 9 | float datas[32]; |
yeongsookim | 0:64fe0ebc42c6 | 10 | int dataCount; |
yeongsookim | 0:64fe0ebc42c6 | 11 | public: |
yeongsookim | 0:64fe0ebc42c6 | 12 | Plotting(); |
yeongsookim | 0:64fe0ebc42c6 | 13 | |
yeongsookim | 0:64fe0ebc42c6 | 14 | void reset(); |
yeongsookim | 0:64fe0ebc42c6 | 15 | void put(float data, int index); |
yeongsookim | 0:64fe0ebc42c6 | 16 | void put(int data, int index); |
yeongsookim | 0:64fe0ebc42c6 | 17 | void put(unsigned int data, int index); |
yeongsookim | 0:64fe0ebc42c6 | 18 | void send(Serial *port); |
yeongsookim | 0:64fe0ebc42c6 | 19 | }; |
yeongsookim | 0:64fe0ebc42c6 | 20 | |
yeongsookim | 0:64fe0ebc42c6 | 21 | #endif |