Browse Source

examples: updated filenames and snippets to start with chipid

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
Mihai Tudor Panu 10 years ago
parent
commit
dc932b61e7

+ 16
- 16
examples/c++/CMakeLists.txt View File

@@ -8,17 +8,17 @@ add_executable (grovetemp-example grovetemp.cxx)
8 8
 add_executable (grovebutton-example grovebutton.cxx)
9 9
 add_executable (groverotary-example groverotary.cxx)
10 10
 add_executable (groveslide-example groveslide.cxx)
11
-add_executable (lcm-lcd-example lcm-lcd.cxx)
12
-add_executable (rgb-lcd-example rgb-lcd.cxx)
11
+add_executable (lcm1602-lcd-example lcm1602-lcd.cxx)
12
+add_executable (jhd1313m1-lcd-example jhd1313m1-lcd.cxx)
13 13
 add_executable (buzzer-sound-example buzzer-sound.cxx)
14
-add_executable (led-bar-example led-bar.cxx)
15
-add_executable (seg-lcd-example 4digitdisplay.cxx)
16
-add_executable (nrf_transmitter-example nrf_transmitter.cxx)
17
-add_executable (nrf_receiver-example nrf_receiver.cxx)
14
+add_executable (my9221-ledbar-example my9221-ledbar.cxx)
15
+add_executable (tm1637-example tm1637.cxx)
16
+add_executable (nrf24l01-transmitter-example nrf24l01-transmitter.cxx)
17
+add_executable (nrf24l01-receiver-example nrf24l01-receiver.cxx)
18 18
 add_executable (es08a-example es08a.cxx)
19 19
 add_executable (son-hcsr04-example hcsr04.cxx)
20
-add_executable (oled-1308-example oled-1308.cxx)
21
-add_executable (oled-1327-example oled-1327.cxx)
20
+add_executable (ssd1308-oled-example ssd1308-oled.cxx)
21
+add_executable (ssd1327-oled-example ssd1327-oled.cxx)
22 22
 add_executable (max44000-example max44000.cxx)
23 23
 add_executable (mma7455-example mma7455.cxx)
24 24
 add_executable (st7735-example st7735.cxx)
@@ -168,17 +168,17 @@ target_link_libraries (grovetemp-example grove ${CMAKE_THREAD_LIBS_INIT})
168 168
 target_link_libraries (grovebutton-example grove ${CMAKE_THREAD_LIBS_INIT})
169 169
 target_link_libraries (groverotary-example grove ${CMAKE_THREAD_LIBS_INIT})
170 170
 target_link_libraries (groveslide-example grove ${CMAKE_THREAD_LIBS_INIT})
171
-target_link_libraries (lcm-lcd-example i2clcd ${CMAKE_THREAD_LIBS_INIT})
172
-target_link_libraries (rgb-lcd-example i2clcd ${CMAKE_THREAD_LIBS_INIT})
171
+target_link_libraries (lcm1602-lcd-example i2clcd ${CMAKE_THREAD_LIBS_INIT})
172
+target_link_libraries (jhd1313m1-lcd-example i2clcd ${CMAKE_THREAD_LIBS_INIT})
173 173
 target_link_libraries (buzzer-sound-example buzzer ${CMAKE_THREAD_LIBS_INIT})
174
-target_link_libraries (led-bar-example my9221 ${CMAKE_THREAD_LIBS_INIT})
175
-target_link_libraries (seg-lcd-example tm1637 ${CMAKE_THREAD_LIBS_INIT})
176
-target_link_libraries (nrf_transmitter-example nrf24l01 ${CMAKE_THREAD_LIBS_INIT})
177
-target_link_libraries (nrf_receiver-example nrf24l01 ${CMAKE_THREAD_LIBS_INIT})
174
+target_link_libraries (my9221-ledbar-example my9221 ${CMAKE_THREAD_LIBS_INIT})
175
+target_link_libraries (tm1637-example tm1637 ${CMAKE_THREAD_LIBS_INIT})
176
+target_link_libraries (nrf24l01-transmitter-example nrf24l01 ${CMAKE_THREAD_LIBS_INIT})
177
+target_link_libraries (nrf24l01-receiver-example nrf24l01 ${CMAKE_THREAD_LIBS_INIT})
178 178
 target_link_libraries (es08a-example servo ${CMAKE_THREAD_LIBS_INIT})
179 179
 target_link_libraries (son-hcsr04-example hcsr04 ${CMAKE_THREAD_LIBS_INIT})
180
-target_link_libraries (oled-1308-example i2clcd ${CMAKE_THREAD_LIBS_INIT})
181
-target_link_libraries (oled-1327-example i2clcd ${CMAKE_THREAD_LIBS_INIT})
180
+target_link_libraries (ssd1308-oled-example i2clcd ${CMAKE_THREAD_LIBS_INIT})
181
+target_link_libraries (ssd1327-oled-example i2clcd ${CMAKE_THREAD_LIBS_INIT})
182 182
 target_link_libraries (max44000-example max44000 ${CMAKE_THREAD_LIBS_INIT})
183 183
 target_link_libraries (mma7455-example mma7455 ${CMAKE_THREAD_LIBS_INIT})
184 184
 target_link_libraries (st7735-example st7735 ${CMAKE_THREAD_LIBS_INIT})

examples/c++/rgb-lcd.cxx → examples/c++/jhd1313m1-lcd.cxx View File


examples/c++/lcm-lcd.cxx → examples/c++/lcm1602-lcd.cxx View File


examples/c++/led-bar.cxx → examples/c++/my9221-ledbar.cxx View File


examples/c++/nrf_receiver.cxx → examples/c++/nrf24l01-receiver.cxx View File


examples/c++/nrf_transmitter.cxx → examples/c++/nrf24l01-transmitter.cxx View File


examples/c++/oled-1308.cxx → examples/c++/ssd1308-oled.cxx View File


examples/c++/oled-1327.cxx → examples/c++/ssd1327-oled.cxx View File


examples/c++/4digitdisplay.cxx → examples/c++/tm1637.cxx View File


+ 1
- 1
src/lcd/jhd1313m1.h View File

@@ -40,7 +40,7 @@ namespace upm {
40 40
  * which requires 5V to operate.
41 41
  *
42 42
  * @ingroup i2clcd i2c
43
- * @snippet rgb-lcd.cxx Interesting
43
+ * @snippet jhd1313m1-lcd.cxx Interesting
44 44
  * @image html grovergblcd.jpeg
45 45
  */
46 46
 class Jhd1313m1 : public I2CLcd {

+ 1
- 1
src/lcd/lcm1602.h View File

@@ -43,7 +43,7 @@ namespace upm {
43 43
  * the best documented example.
44 44
  *
45 45
  * @ingroup i2clcd i2c
46
- * @snippet lcm-lcd.cxx Interesting
46
+ * @snippet lcm1602-lcd.cxx Interesting
47 47
  * @image html lcm1602.jpeg
48 48
  */
49 49
 class Lcm1602 : public I2CLcd {

+ 1
- 1
src/lcd/ssd1308.h View File

@@ -43,7 +43,7 @@ namespace upm {
43 43
  * which is an OLED monochrome display
44 44
  *
45 45
  * @ingroup i2clcd i2c
46
- * @snippet oled-1308.cxx Interesting
46
+ * @snippet ssd1308-oled.cxx Interesting
47 47
  * @image html ssd1308.jpeg
48 48
  */
49 49
 class SSD1308 : public I2CLcd {

+ 1
- 1
src/lcd/ssd1327.h View File

@@ -43,7 +43,7 @@ namespace upm {
43 43
  * which is an OLED monochrome display
44 44
  *
45 45
  * @ingroup i2clcd i2c
46
- * @snippet oled-1327.cxx Interesting
46
+ * @snippet ssd1327-oled.cxx Interesting
47 47
  * @image html ssd1327.jpeg
48 48
  */
49 49
 class SSD1327 : public I2CLcd {

+ 1
- 1
src/my9221/my9221.h View File

@@ -48,7 +48,7 @@ namespace upm {
48 48
  * This file defines the MY9221 C++ interface for libmy9221
49 49
  *
50 50
  * @ingroup my9221 gpio
51
- * @snippet led-bar.cxx Interesting
51
+ * @snippet my9221-ledbar.cxx Interesting
52 52
  */
53 53
 class MY9221 {
54 54
     public:

+ 2
- 2
src/nrf24l01/nrf24l01.h View File

@@ -161,8 +161,8 @@ typedef enum {
161 161
  * This file defines the NRF24l01 C++ interface for libnrf24l01
162 162
  *
163 163
  * @ingroup nrf24l01
164
- * @snippet nrf_receiver.cxx Interesting
165
- * @snippet nrf_transmitter.cxx Interesting
164
+ * @snippet nrf24l01-receiver.cxx Interesting
165
+ * @snippet nrf24l01-transmitter.cxx Interesting
166 166
  */
167 167
 class NRF24L01 {
168 168
     public:

+ 1
- 1
src/tm1637/tm1637.h View File

@@ -57,7 +57,7 @@ namespace upm {
57 57
  * This file defines the TM1637 C++ interface for lib4digitdisplay
58 58
  *
59 59
  * @ingroup tm1637 gpio
60
- * @snippet 4digitdisplay.cxx Interesting
60
+ * @snippet tm1637.cxx Interesting
61 61
  *
62 62
  *      A
63 63
  *     ---