

amptest
This repository has no backups
This repository's network speed is throttled to 100KB/sec
Upgrade your account to fix these warnings, or use backups.vc for automated backups
Diff Revisions 2 vs 3 for /trunk/proto.cpp
@@ -5,20 +5,33 @@ | |||
5 | 5 | #include "amptimer.h" | |
6 | 6 | ||
7 | 7 | ||
8 | + | void usage_proto(); | |
9 | + | ||
10 | + | ||
8 | 11 | void init_proto() | |
9 | 12 | { | |
10 | 13 | Serial.begin(115200); | |
11 | 14 | ||
15 | + | usage_proto(); | |
16 | + | } | |
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | void usage_proto() | |
21 | + | { | |
12 | 22 | Serial.println("Piezo Control started."); | |
13 | 23 | Serial.println("Commands:"); | |
14 | 24 | Serial.println(" amp: [0 - 1]"); | |
15 | - | Serial.println(" freq: [0.1 - 200]"); | |
16 | - | Serial.println(" mode: [const][sine][tri]"); | |
25 | + | Serial.println(" freq: [0.01 - 200]"); | |
26 | + | Serial.println(" mode: [const][sine][line][pulse]"); | |
17 | 27 | Serial.println(" sweep:[start;end;rate][no]"); | |
18 | 28 | Serial.println("------------------------"); | |
19 | 29 | } | |
20 | 30 | ||
21 | 31 | ||
32 | + | ||
33 | + | ||
34 | + | ||
22 | 35 | #define COMMAND_BUFFER_SIZE 256 | |
23 | 36 | #define CR 0x0D | |
24 | 37 | #define LF 0x0A |