denko 0.13.2 → 0.13.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (422) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/build_megaavr.yml +1 -1
  3. data/CHANGELOG.md +40 -0
  4. data/DEPS_CLI.md +5 -0
  5. data/DEPS_IDE.md +5 -0
  6. data/HARDWARE.md +20 -12
  7. data/README.md +1 -1
  8. data/benchmarks/i2c_ssd1306_refresh.rb +7 -2
  9. data/examples/pulse_io/buzzer.rb +0 -40
  10. data/lib/denko/board/led_array.rb +3 -6
  11. data/lib/denko/message.rb +1 -1
  12. data/lib/denko/version.rb +1 -1
  13. data/src/denko_wifi.ino +38 -3
  14. data/src/lib/Denko.cpp +0 -9
  15. data/src/lib/Denko.h +1 -2
  16. data/src/lib/DenkoDefines.h +14 -6
  17. data/src/lib/DenkoLEDArray.cpp +4 -10
  18. data/target.yml +1 -35
  19. data/test/analog_io/input_test.rb +3 -3
  20. data/test/analog_io/output_test.rb +1 -1
  21. data/test/analog_io/potentiometer_test.rb +2 -2
  22. data/test/behaviors/bus_peripheral_addressed.rb +1 -1
  23. data/test/behaviors/bus_peripheral_test.rb +1 -1
  24. data/test/behaviors/callbacks_test.rb +4 -4
  25. data/test/behaviors/component_test.rb +2 -2
  26. data/test/behaviors/listener_test.rb +3 -3
  27. data/test/behaviors/poller_test.rb +3 -3
  28. data/test/behaviors/reader_test.rb +4 -4
  29. data/test/behaviors/subcomponents_test.rb +1 -1
  30. data/test/behaviors/threaded_test.rb +7 -7
  31. data/test/board/board_test.rb +8 -8
  32. data/test/board/core_test.rb +12 -12
  33. data/test/board/eeprom_test.rb +2 -2
  34. data/test/board/i2c_test.rb +5 -5
  35. data/test/board/infrared_test.rb +1 -1
  36. data/test/board/message_test.rb +1 -1
  37. data/test/board/one_wire_test.rb +4 -4
  38. data/test/board/pulse_test.rb +2 -2
  39. data/test/board/servo_test.rb +3 -3
  40. data/test/board/spi_test.rb +3 -3
  41. data/test/board/tone_test.rb +2 -2
  42. data/test/connection/serial_test.rb +13 -13
  43. data/test/digital_io/input_test.rb +7 -7
  44. data/test/digital_io/output_test.rb +5 -5
  45. data/test/digital_io/rotary_encoder_test.rb +4 -4
  46. data/test/display/hd44780_test.rb +1 -1
  47. data/test/eeprom/built_in_test.rb +1 -1
  48. data/test/i2c/bus_test.rb +5 -5
  49. data/test/i2c/peripheral_test.rb +4 -4
  50. data/test/led/base_test.rb +2 -2
  51. data/test/led/rgb_test.rb +6 -6
  52. data/test/led/seven_segment_test.rb +8 -8
  53. data/test/motor/servo_test.rb +6 -6
  54. data/test/motor/stepper_test.rb +5 -5
  55. data/test/one_wire/bus_test.rb +9 -9
  56. data/test/one_wire/peripheral_test.rb +17 -17
  57. data/test/pulse_io/buzzer_test.rb +4 -4
  58. data/test/pulse_io/ir_transmitter_test.rb +2 -2
  59. data/test/pulse_io/pwm_output_test.rb +4 -4
  60. data/test/rtc/ds3231_test.rb +4 -4
  61. data/test/sensor/dht_test.rb +3 -3
  62. data/test/sensor/ds18b20_test.rb +9 -9
  63. data/test/spi/bus_test.rb +4 -4
  64. data/test/spi/input_register_test.rb +8 -8
  65. data/test/spi/output_register_test.rb +4 -4
  66. data/test/uart/bitbang_test.rb +3 -3
  67. metadata +2 -357
  68. data/vendor/board-maps/.gitignore +0 -56
  69. data/vendor/board-maps/.gitmodules +0 -24
  70. data/vendor/board-maps/BoardMap.h +0 -1392
  71. data/vendor/board-maps/README.md +0 -52
  72. data/vendor/board-maps/lib/boards_parser.rb +0 -66
  73. data/vendor/board-maps/lib/header_parser.rb +0 -189
  74. data/vendor/board-maps/run.rb +0 -57
  75. data/vendor/board-maps/yaml/0XCB_HELIOS.yml +0 -48
  76. data/vendor/board-maps/yaml/ADAFRUIT_FEATHER_ESP32S2.yml +0 -25
  77. data/vendor/board-maps/yaml/ADAFRUIT_FEATHER_ESP32S2_REVTFT.yml +0 -25
  78. data/vendor/board-maps/yaml/ADAFRUIT_FEATHER_ESP32S2_TFT.yml +0 -27
  79. data/vendor/board-maps/yaml/ADAFRUIT_FEATHER_ESP32S3.yml +0 -34
  80. data/vendor/board-maps/yaml/ADAFRUIT_FEATHER_ESP32S3_NOPSRAM.yml +0 -34
  81. data/vendor/board-maps/yaml/ADAFRUIT_FEATHER_ESP32S3_REVTFT.yml +0 -25
  82. data/vendor/board-maps/yaml/ADAFRUIT_FEATHER_ESP32S3_TFT.yml +0 -27
  83. data/vendor/board-maps/yaml/ADAFRUIT_FEATHER_ESP32_V2.yml +0 -34
  84. data/vendor/board-maps/yaml/ADAFRUIT_FEATHER_RP2040.yml +0 -48
  85. data/vendor/board-maps/yaml/ADAFRUIT_FEATHER_RP2040_CAN.yml +0 -48
  86. data/vendor/board-maps/yaml/ADAFRUIT_FEATHER_RP2040_DVI.yml +0 -48
  87. data/vendor/board-maps/yaml/ADAFRUIT_FEATHER_RP2040_PROP_MAKER.yml +0 -48
  88. data/vendor/board-maps/yaml/ADAFRUIT_FEATHER_RP2040_RFM.yml +0 -48
  89. data/vendor/board-maps/yaml/ADAFRUIT_FEATHER_RP2040_SCORPIO.yml +0 -48
  90. data/vendor/board-maps/yaml/ADAFRUIT_FEATHER_RP2040_THINKINK.yml +0 -48
  91. data/vendor/board-maps/yaml/ADAFRUIT_FEATHER_RP2040_USB_HOST.yml +0 -48
  92. data/vendor/board-maps/yaml/ADAFRUIT_ITSYBITSY_ESP32.yml +0 -24
  93. data/vendor/board-maps/yaml/ADAFRUIT_ITSYBITSY_RP2040.yml +0 -48
  94. data/vendor/board-maps/yaml/ADAFRUIT_KB2040_RP2040.yml +0 -48
  95. data/vendor/board-maps/yaml/ADAFRUIT_MACROPAD_RP2040.yml +0 -48
  96. data/vendor/board-maps/yaml/ADAFRUIT_MATRIXPORTAL_ESP32S3.yml +0 -16
  97. data/vendor/board-maps/yaml/ADAFRUIT_QTPY_ESP32C3.yml +0 -12
  98. data/vendor/board-maps/yaml/ADAFRUIT_QTPY_ESP32S2.yml +0 -22
  99. data/vendor/board-maps/yaml/ADAFRUIT_QTPY_ESP32S3_N4R2.yml +0 -20
  100. data/vendor/board-maps/yaml/ADAFRUIT_QTPY_ESP32S3_NOPSRAM.yml +0 -20
  101. data/vendor/board-maps/yaml/ADAFRUIT_QTPY_ESP32_PICO.yml +0 -28
  102. data/vendor/board-maps/yaml/ADAFRUIT_QTPY_RP2040.yml +0 -48
  103. data/vendor/board-maps/yaml/ADAFRUIT_STEMMAFRIEND_RP2040.yml +0 -48
  104. data/vendor/board-maps/yaml/ADAFRUIT_TRINKEYQT_RP2040.yml +0 -48
  105. data/vendor/board-maps/yaml/ALKS.yml +0 -34
  106. data/vendor/board-maps/yaml/AMPERKA_WIFI_SLOT.yml +0 -16
  107. data/vendor/board-maps/yaml/ARTRONSHOP_RP2_NANO.yml +0 -32
  108. data/vendor/board-maps/yaml/AVR_ADK.yml +0 -24
  109. data/vendor/board-maps/yaml/AVR_BT.yml +0 -16
  110. data/vendor/board-maps/yaml/AVR_CIRCUITPLAY.yml +0 -14
  111. data/vendor/board-maps/yaml/AVR_DUEMILANOVE.yml +0 -16
  112. data/vendor/board-maps/yaml/AVR_ESPLORA.yml +0 -20
  113. data/vendor/board-maps/yaml/AVR_ETHERNET.yml +0 -16
  114. data/vendor/board-maps/yaml/AVR_FIO.yml +0 -16
  115. data/vendor/board-maps/yaml/AVR_GEMMA.yml +0 -6
  116. data/vendor/board-maps/yaml/AVR_INDUSTRIAL101.yml +0 -20
  117. data/vendor/board-maps/yaml/AVR_LEONARDO.yml +0 -20
  118. data/vendor/board-maps/yaml/AVR_LEONARDO_ETH.yml +0 -20
  119. data/vendor/board-maps/yaml/AVR_LILYPAD.yml +0 -16
  120. data/vendor/board-maps/yaml/AVR_LILYPAD_USB.yml +0 -20
  121. data/vendor/board-maps/yaml/AVR_LININO_ONE.yml +0 -20
  122. data/vendor/board-maps/yaml/AVR_MEGA.yml +0 -24
  123. data/vendor/board-maps/yaml/AVR_MEGA2560.yml +0 -24
  124. data/vendor/board-maps/yaml/AVR_MICRO.yml +0 -20
  125. data/vendor/board-maps/yaml/AVR_MINI.yml +0 -16
  126. data/vendor/board-maps/yaml/AVR_NANO.yml +0 -16
  127. data/vendor/board-maps/yaml/AVR_NANO_EVERY.yml +0 -22
  128. data/vendor/board-maps/yaml/AVR_NG.yml +0 -16
  129. data/vendor/board-maps/yaml/AVR_PRO.yml +0 -16
  130. data/vendor/board-maps/yaml/AVR_ROBOT_CONTROL.yml +0 -22
  131. data/vendor/board-maps/yaml/AVR_ROBOT_MOTOR.yml +0 -19
  132. data/vendor/board-maps/yaml/AVR_UNO.yml +0 -16
  133. data/vendor/board-maps/yaml/AVR_UNO_WIFI_DEV_ED.yml +0 -16
  134. data/vendor/board-maps/yaml/AVR_UNO_WIFI_REV2.yml +0 -22
  135. data/vendor/board-maps/yaml/AVR_YUN.yml +0 -20
  136. data/vendor/board-maps/yaml/AVR_YUNMINI.yml +0 -20
  137. data/vendor/board-maps/yaml/AirM2M_CORE_ESP32C3.yml +0 -14
  138. data/vendor/board-maps/yaml/BEE_DATA_LOGGER.yml +0 -39
  139. data/vendor/board-maps/yaml/BPI_BIT.yml +0 -9
  140. data/vendor/board-maps/yaml/BPI_LEAF_S3.yml +0 -41
  141. data/vendor/board-maps/yaml/BRIDGETEK_IDM2040-7A.yml +0 -48
  142. data/vendor/board-maps/yaml/BeeMotionS3.yml +0 -45
  143. data/vendor/board-maps/yaml/Bee_Motion.yml +0 -30
  144. data/vendor/board-maps/yaml/Bee_Motion_Mini.yml +0 -1
  145. data/vendor/board-maps/yaml/Bee_S3.yml +0 -38
  146. data/vendor/board-maps/yaml/CHALLENGER_2040_LORA_RP2040.yml +0 -39
  147. data/vendor/board-maps/yaml/CHALLENGER_2040_LTE_RP2040.yml +0 -38
  148. data/vendor/board-maps/yaml/CHALLENGER_2040_NFC_RP2040.yml +0 -32
  149. data/vendor/board-maps/yaml/CHALLENGER_2040_SDRTC_RP2040.yml +0 -36
  150. data/vendor/board-maps/yaml/CHALLENGER_2040_SUBGHZ_RP2040.yml +0 -39
  151. data/vendor/board-maps/yaml/CHALLENGER_2040_UWB_RP2040.yml +0 -39
  152. data/vendor/board-maps/yaml/CHALLENGER_2040_WIFI6_BLE_RP2040.yml +0 -42
  153. data/vendor/board-maps/yaml/CHALLENGER_2040_WIFI_BLE_RP2040.yml +0 -42
  154. data/vendor/board-maps/yaml/CHALLENGER_2040_WIFI_RP2040.yml +0 -38
  155. data/vendor/board-maps/yaml/CHALLENGER_NB_2040_WIFI_RP2040.yml +0 -38
  156. data/vendor/board-maps/yaml/CRABIK_SLOT_ESP32_S3.yml +0 -19
  157. data/vendor/board-maps/yaml/CYTRON_MAKER_FEATHER_AIOT_S3.yml +0 -29
  158. data/vendor/board-maps/yaml/CYTRON_MAKER_NANO_RP2040.yml +0 -48
  159. data/vendor/board-maps/yaml/CYTRON_MAKER_PI_RP2040.yml +0 -48
  160. data/vendor/board-maps/yaml/CoreESP32.yml +0 -53
  161. data/vendor/board-maps/yaml/D1_MINI32.yml +0 -45
  162. data/vendor/board-maps/yaml/D1_UNO32.yml +0 -28
  163. data/vendor/board-maps/yaml/DATANOISETV_PICOADK.yml +0 -48
  164. data/vendor/board-maps/yaml/DENKY.yml +0 -35
  165. data/vendor/board-maps/yaml/DENKY_PICOV3.yml +0 -35
  166. data/vendor/board-maps/yaml/DENKY_WROOM32.yml +0 -35
  167. data/vendor/board-maps/yaml/DEPARTMENT_OF_ALCHEMY_MINIMAIN_ESP32S2.yml +0 -26
  168. data/vendor/board-maps/yaml/DFROBOT_BEETLE_ESP32_C3.yml +0 -14
  169. data/vendor/board-maps/yaml/DFROBOT_BEETLE_RP2040.yml +0 -48
  170. data/vendor/board-maps/yaml/DFROBOT_FIREBEETLE_2_ESP32E.yml +0 -49
  171. data/vendor/board-maps/yaml/DFROBOT_FIREBEETLE_2_ESP32S3.yml +0 -38
  172. data/vendor/board-maps/yaml/DFROBOT_ROMEO_ESP32S3.yml +0 -7
  173. data/vendor/board-maps/yaml/DPU_ESP32.yml +0 -35
  174. data/vendor/board-maps/yaml/DYDK.yml +0 -38
  175. data/vendor/board-maps/yaml/DYDK1A.yml +0 -37
  176. data/vendor/board-maps/yaml/DYDK1Av2.yml +0 -45
  177. data/vendor/board-maps/yaml/DYG.yml +0 -20
  178. data/vendor/board-maps/yaml/DYM.yml +0 -40
  179. data/vendor/board-maps/yaml/DYMv2.yml +0 -39
  180. data/vendor/board-maps/yaml/D_Duino_32.yml +0 -37
  181. data/vendor/board-maps/yaml/ELECTRONICCATS_HUNTERCAT_NFC.yml +0 -44
  182. data/vendor/board-maps/yaml/ESP320.yml +0 -8
  183. data/vendor/board-maps/yaml/ESP32C3_DEV.yml +0 -14
  184. data/vendor/board-maps/yaml/ESP32C3_M1_I_KIT.yml +0 -13
  185. data/vendor/board-maps/yaml/ESP32S2_DEV.yml +0 -43
  186. data/vendor/board-maps/yaml/ESP32S2_THING_PLUS.yml +0 -44
  187. data/vendor/board-maps/yaml/ESP32S2_USB.yml +0 -43
  188. data/vendor/board-maps/yaml/ESP32S3_CAM_LCD.yml +0 -7
  189. data/vendor/board-maps/yaml/ESP32S3_DEV.yml +0 -38
  190. data/vendor/board-maps/yaml/ESP32_DEV.yml +0 -35
  191. data/vendor/board-maps/yaml/ESP32_DEVKIT_LIPO.yml +0 -35
  192. data/vendor/board-maps/yaml/ESP32_EVB.yml +0 -7
  193. data/vendor/board-maps/yaml/ESP32_GATEWAY.yml +0 -13
  194. data/vendor/board-maps/yaml/ESP32_GATEWAY_C.yml +0 -13
  195. data/vendor/board-maps/yaml/ESP32_GATEWAY_E.yml +0 -13
  196. data/vendor/board-maps/yaml/ESP32_GATEWAY_F.yml +0 -13
  197. data/vendor/board-maps/yaml/ESP32_IOT_REDBOARD.yml +0 -36
  198. data/vendor/board-maps/yaml/ESP32_MICROMOD.yml +0 -24
  199. data/vendor/board-maps/yaml/ESP32_PICO.yml +0 -35
  200. data/vendor/board-maps/yaml/ESP32_POE.yml +0 -7
  201. data/vendor/board-maps/yaml/ESP32_POE_ISO.yml +0 -7
  202. data/vendor/board-maps/yaml/ESP32_S3_BOX.yml +0 -19
  203. data/vendor/board-maps/yaml/ESP32_S3_USB_OTG.yml +0 -11
  204. data/vendor/board-maps/yaml/ESP32_THING.yml +0 -36
  205. data/vendor/board-maps/yaml/ESP32_THING_PLUS.yml +0 -33
  206. data/vendor/board-maps/yaml/ESP32_THING_PLUS_C.yml +0 -33
  207. data/vendor/board-maps/yaml/ESP32_WROOM_DA.yml +0 -35
  208. data/vendor/board-maps/yaml/ESP32_WROVER_KIT.yml +0 -35
  209. data/vendor/board-maps/yaml/ESP8266_ADAFRUIT_HUZZAH.yml +0 -9
  210. data/vendor/board-maps/yaml/ESP8266_AGRUMINO_LEMON_V4.yml +0 -8
  211. data/vendor/board-maps/yaml/ESP8266_ARDUINO_PRIMO.yml +0 -7
  212. data/vendor/board-maps/yaml/ESP8266_ARDUINO_STAR_OTTO.yml +0 -7
  213. data/vendor/board-maps/yaml/ESP8266_ARDUINO_UNOWIFI.yml +0 -9
  214. data/vendor/board-maps/yaml/ESP8266_ESP01.yml +0 -9
  215. data/vendor/board-maps/yaml/ESP8266_ESP07.yml +0 -20
  216. data/vendor/board-maps/yaml/ESP8266_ESP12.yml +0 -20
  217. data/vendor/board-maps/yaml/ESP8266_ESP13.yml +0 -17
  218. data/vendor/board-maps/yaml/ESP8266_ESP210.yml +0 -9
  219. data/vendor/board-maps/yaml/ESP8266_ESPECTRO_CORE.yml +0 -9
  220. data/vendor/board-maps/yaml/ESP8266_ESPINO_ESP12.yml +0 -9
  221. data/vendor/board-maps/yaml/ESP8266_ESPINO_ESP13.yml +0 -9
  222. data/vendor/board-maps/yaml/ESP8266_ESPRESSO_LITE_V1.yml +0 -9
  223. data/vendor/board-maps/yaml/ESP8266_ESPRESSO_LITE_V2.yml +0 -9
  224. data/vendor/board-maps/yaml/ESP8266_GENERIC.yml +0 -9
  225. data/vendor/board-maps/yaml/ESP8266_INVENT_ONE.yml +0 -22
  226. data/vendor/board-maps/yaml/ESP8266_NODEMCU_ESP12.yml +0 -20
  227. data/vendor/board-maps/yaml/ESP8266_NODEMCU_ESP12E.yml +0 -20
  228. data/vendor/board-maps/yaml/ESP8266_OAK.yml +0 -9
  229. data/vendor/board-maps/yaml/ESP8266_PHOENIX_V1.yml +0 -9
  230. data/vendor/board-maps/yaml/ESP8266_PHOENIX_V2.yml +0 -9
  231. data/vendor/board-maps/yaml/ESP8266_SCHIRMILABS_EDUINO_WIFI.yml +0 -25
  232. data/vendor/board-maps/yaml/ESP8266_SONOFF_BASIC.yml +0 -9
  233. data/vendor/board-maps/yaml/ESP8266_SONOFF_S20.yml +0 -9
  234. data/vendor/board-maps/yaml/ESP8266_SONOFF_SV.yml +0 -9
  235. data/vendor/board-maps/yaml/ESP8266_SONOFF_TH.yml +0 -9
  236. data/vendor/board-maps/yaml/ESP8266_THING.yml +0 -9
  237. data/vendor/board-maps/yaml/ESP8266_THING_DEV.yml +0 -9
  238. data/vendor/board-maps/yaml/ESP8266_WEMOS_D1MINI.yml +0 -18
  239. data/vendor/board-maps/yaml/ESP8266_WEMOS_D1MINILITE.yml +0 -18
  240. data/vendor/board-maps/yaml/ESP8266_WEMOS_D1MINIPRO.yml +0 -18
  241. data/vendor/board-maps/yaml/ESP8266_WEMOS_D1R1.yml +0 -25
  242. data/vendor/board-maps/yaml/ESP8266_WEMOS_D1WROOM02.yml +0 -18
  243. data/vendor/board-maps/yaml/ESP8266_WIO_LINK.yml +0 -9
  244. data/vendor/board-maps/yaml/ESP8266_XINABOX_CW01.yml +0 -9
  245. data/vendor/board-maps/yaml/ESPECTRO32.yml +0 -36
  246. data/vendor/board-maps/yaml/ESPea32.yml +0 -36
  247. data/vendor/board-maps/yaml/ESPino32.yml +0 -36
  248. data/vendor/board-maps/yaml/ET-Board.yml +0 -26
  249. data/vendor/board-maps/yaml/EXTREMEELEXTRONICS_RC2040.yml +0 -46
  250. data/vendor/board-maps/yaml/Edgebox-ESP-100.yml +0 -7
  251. data/vendor/board-maps/yaml/FEATHERS2.yml +0 -43
  252. data/vendor/board-maps/yaml/FEATHERS2NEO.yml +0 -31
  253. data/vendor/board-maps/yaml/FEATHERS3.yml +0 -32
  254. data/vendor/board-maps/yaml/FEATHER_ESP32.yml +0 -32
  255. data/vendor/board-maps/yaml/FLYBOARD2040_CORE.yml +0 -48
  256. data/vendor/board-maps/yaml/FRANZININHO_WIFI.yml +0 -43
  257. data/vendor/board-maps/yaml/FRANZININHO_WIFI_MSC.yml +0 -43
  258. data/vendor/board-maps/yaml/FROG_ESP32.yml +0 -35
  259. data/vendor/board-maps/yaml/FUNHOUSE_ESP32S2.yml +0 -22
  260. data/vendor/board-maps/yaml/GEN4_IOD.yml +0 -9
  261. data/vendor/board-maps/yaml/GENERIC_RP2040.yml +0 -48
  262. data/vendor/board-maps/yaml/HEALTHYPI_4.yml +0 -36
  263. data/vendor/board-maps/yaml/HONEYLEMON.yml +0 -36
  264. data/vendor/board-maps/yaml/HORNBILL_ESP32_DEV.yml +0 -36
  265. data/vendor/board-maps/yaml/HORNBILL_ESP32_MINIMA.yml +0 -19
  266. data/vendor/board-maps/yaml/ILABS_2040_RPICO32_RP2040.yml +0 -47
  267. data/vendor/board-maps/yaml/IMBRIOS_LOGSENS_V1P1.yml +0 -23
  268. data/vendor/board-maps/yaml/INTOROBOT_ESP32_DEV.yml +0 -34
  269. data/vendor/board-maps/yaml/LILYGO_T_DISPLAY_S3.yml +0 -32
  270. data/vendor/board-maps/yaml/LOLIN32.yml +0 -36
  271. data/vendor/board-maps/yaml/LOLIN32_LITE.yml +0 -36
  272. data/vendor/board-maps/yaml/LOLIN_C3_MINI.yml +0 -14
  273. data/vendor/board-maps/yaml/LOLIN_D32.yml +0 -36
  274. data/vendor/board-maps/yaml/LOLIN_D32_PRO.yml +0 -36
  275. data/vendor/board-maps/yaml/LOLIN_S2_MINI.yml +0 -44
  276. data/vendor/board-maps/yaml/LOLIN_S2_PICO.yml +0 -44
  277. data/vendor/board-maps/yaml/LOLIN_S3.yml +0 -40
  278. data/vendor/board-maps/yaml/LOLIN_S3_MINI.yml +0 -40
  279. data/vendor/board-maps/yaml/LOLIN_S3_PRO.yml +0 -40
  280. data/vendor/board-maps/yaml/Lion_Bit_Dev_Board.yml +0 -18
  281. data/vendor/board-maps/yaml/LoPy.yml +0 -37
  282. data/vendor/board-maps/yaml/LoPy4.yml +0 -37
  283. data/vendor/board-maps/yaml/M5STACK_CORES3.yml +0 -8
  284. data/vendor/board-maps/yaml/M5STACK_Core2.yml +0 -9
  285. data/vendor/board-maps/yaml/M5STACK_FIRE.yml +0 -10
  286. data/vendor/board-maps/yaml/M5Stack-Timer-CAM.yml +0 -10
  287. data/vendor/board-maps/yaml/M5Stack_ATOM.yml +0 -10
  288. data/vendor/board-maps/yaml/M5Stack_ATOMS3.yml +0 -7
  289. data/vendor/board-maps/yaml/M5Stack_CoreInk.yml +0 -9
  290. data/vendor/board-maps/yaml/M5Stack_Core_ESP32.yml +0 -10
  291. data/vendor/board-maps/yaml/M5Stack_Station.yml +0 -10
  292. data/vendor/board-maps/yaml/M5Stick_C.yml +0 -10
  293. data/vendor/board-maps/yaml/MAGTAG29_ESP32S2.yml +0 -31
  294. data/vendor/board-maps/yaml/MELOPERO_COOKIE_RP2040.yml +0 -48
  295. data/vendor/board-maps/yaml/MELOPERO_SHAKE_RP2040.yml +0 -48
  296. data/vendor/board-maps/yaml/METRO_ESP32S2.yml +0 -44
  297. data/vendor/board-maps/yaml/MGBOT_IOTIK32A.yml +0 -36
  298. data/vendor/board-maps/yaml/MGBOT_IOTIK32B.yml +0 -36
  299. data/vendor/board-maps/yaml/MH_ET_LIVE_ESP32DEVKIT.yml +0 -36
  300. data/vendor/board-maps/yaml/MH_ET_LIVE_ESP32MINIKIT.yml +0 -36
  301. data/vendor/board-maps/yaml/MICROS2.yml +0 -44
  302. data/vendor/board-maps/yaml/MINIMA.yml +0 -15
  303. data/vendor/board-maps/yaml/MOD_WIFI_ESP8266.yml +0 -9
  304. data/vendor/board-maps/yaml/Metro.yml +0 -8
  305. data/vendor/board-maps/yaml/NANO32.yml +0 -36
  306. data/vendor/board-maps/yaml/NANO_RP2040_CONNECT.yml +0 -35
  307. data/vendor/board-maps/yaml/NEBULAS3.yml +0 -33
  308. data/vendor/board-maps/yaml/NEKOSYSTEMS_BL2040_MINI.yml +0 -48
  309. data/vendor/board-maps/yaml/NULLBITS_BIT_C_PRO.yml +0 -48
  310. data/vendor/board-maps/yaml/Node32s.yml +0 -36
  311. data/vendor/board-maps/yaml/NodeMCU_32S.yml +0 -36
  312. data/vendor/board-maps/yaml/ODROID_ESP32.yml +0 -10
  313. data/vendor/board-maps/yaml/ONEHORSE_ESP32_DEV.yml +0 -34
  314. data/vendor/board-maps/yaml/OROCA_EDUBOT.yml +0 -33
  315. data/vendor/board-maps/yaml/PIMORONI_PGA2040.yml +0 -48
  316. data/vendor/board-maps/yaml/PIMORONI_PLASMA2040.yml +0 -29
  317. data/vendor/board-maps/yaml/PORTENTA_C33.yml +0 -28
  318. data/vendor/board-maps/yaml/PROS3.yml +0 -33
  319. data/vendor/board-maps/yaml/PYCOM_GPY.yml +0 -37
  320. data/vendor/board-maps/yaml/Piranha.yml +0 -22
  321. data/vendor/board-maps/yaml/Pocket32.yml +0 -36
  322. data/vendor/board-maps/yaml/QUANTUM.yml +0 -35
  323. data/vendor/board-maps/yaml/RASPBERRY_PI_PICO.yml +0 -48
  324. data/vendor/board-maps/yaml/RASPBERRY_PI_PICO_W.yml +0 -48
  325. data/vendor/board-maps/yaml/REDPILL_ESP32S3.yml +0 -42
  326. data/vendor/board-maps/yaml/RMP.yml +0 -43
  327. data/vendor/board-maps/yaml/SAMD_CIRCUITPLAYGROUND_EXPRESS.yml +0 -11
  328. data/vendor/board-maps/yaml/SAMD_MKR1000.yml +0 -20
  329. data/vendor/board-maps/yaml/SAMD_MKRFox1200.yml +0 -19
  330. data/vendor/board-maps/yaml/SAMD_MKRGSM1400.yml +0 -15
  331. data/vendor/board-maps/yaml/SAMD_MKRNB1500.yml +0 -15
  332. data/vendor/board-maps/yaml/SAMD_MKRVIDOR4000.yml +0 -19
  333. data/vendor/board-maps/yaml/SAMD_MKRWAN1300.yml +0 -18
  334. data/vendor/board-maps/yaml/SAMD_MKRWAN1310.yml +0 -18
  335. data/vendor/board-maps/yaml/SAMD_MKRWIFI1010.yml +0 -19
  336. data/vendor/board-maps/yaml/SAMD_MKRZERO.yml +0 -19
  337. data/vendor/board-maps/yaml/SAMD_NANO_33_IOT.yml +0 -13
  338. data/vendor/board-maps/yaml/SAMD_TIAN.yml +0 -15
  339. data/vendor/board-maps/yaml/SAMD_ZERO.yml +0 -14
  340. data/vendor/board-maps/yaml/SAM_DUE.yml +0 -28
  341. data/vendor/board-maps/yaml/SAM_ZERO.yml +0 -15
  342. data/vendor/board-maps/yaml/SEEED_INDICATOR_RP2040.yml +0 -47
  343. data/vendor/board-maps/yaml/SEEED_XIAO_RP2040.yml +0 -29
  344. data/vendor/board-maps/yaml/SOLDERPARTY_RP2040_STAMP.yml +0 -48
  345. data/vendor/board-maps/yaml/SONOFF_DUALR3.yml +0 -35
  346. data/vendor/board-maps/yaml/SPARKFUN_PROMICRO_RP2040.yml +0 -48
  347. data/vendor/board-maps/yaml/SPARKFUN_THINGPLUS_RP2040.yml +0 -48
  348. data/vendor/board-maps/yaml/STAMP_S3.yml +0 -4
  349. data/vendor/board-maps/yaml/TAMC_TERMOD_S3.yml +0 -41
  350. data/vendor/board-maps/yaml/TBEAM_USE_RADIO_SX1262.yml +0 -28
  351. data/vendor/board-maps/yaml/TBEAM_USE_RADIO_SX1268.yml +0 -28
  352. data/vendor/board-maps/yaml/TBEAM_USE_RADIO_SX1276.yml +0 -28
  353. data/vendor/board-maps/yaml/TBEAM_USE_RADIO_SX1278.yml +0 -28
  354. data/vendor/board-maps/yaml/TBEAM_USE_RADIO_SX1280.yml +0 -28
  355. data/vendor/board-maps/yaml/TBeam.yml +0 -28
  356. data/vendor/board-maps/yaml/TINYPICO.yml +0 -35
  357. data/vendor/board-maps/yaml/TINYS2.yml +0 -43
  358. data/vendor/board-maps/yaml/TINYS3.yml +0 -25
  359. data/vendor/board-maps/yaml/TTGO-T-OI-PLUS_DEV.yml +0 -11
  360. data/vendor/board-maps/yaml/TTGO_LoRa32_V1.yml +0 -38
  361. data/vendor/board-maps/yaml/TTGO_LoRa32_V2.yml +0 -38
  362. data/vendor/board-maps/yaml/TTGO_LoRa32_v21new.yml +0 -38
  363. data/vendor/board-maps/yaml/TTGO_T1.yml +0 -36
  364. data/vendor/board-maps/yaml/TTGO_T7_V13_Mini32.yml +0 -36
  365. data/vendor/board-maps/yaml/TTGO_T7_V14_Mini32.yml +0 -36
  366. data/vendor/board-maps/yaml/TWATCH_2020_V1.yml +0 -9
  367. data/vendor/board-maps/yaml/TWATCH_2020_V2.yml +0 -9
  368. data/vendor/board-maps/yaml/TWATCH_2020_V3.yml +0 -9
  369. data/vendor/board-maps/yaml/TWATCH_BASE.yml +0 -9
  370. data/vendor/board-maps/yaml/TWatch.yml +0 -9
  371. data/vendor/board-maps/yaml/Trueverit_ESP32_Universal_IoT_Driver.yml +0 -18
  372. data/vendor/board-maps/yaml/Trueverit_ESP32_Universal_IoT_Driver_MK_II.yml +0 -18
  373. data/vendor/board-maps/yaml/UBLOX_NINA_W10.yml +0 -57
  374. data/vendor/board-maps/yaml/UBLOX_NORA_W10.yml +0 -43
  375. data/vendor/board-maps/yaml/UNOWIFIR4.yml +0 -17
  376. data/vendor/board-maps/yaml/UPESY_RP2040_DEVKIT.yml +0 -48
  377. data/vendor/board-maps/yaml/VALTRACK_V4_MFW_ESP32_C3.yml +0 -23
  378. data/vendor/board-maps/yaml/VALTRACK_V4_VTS_ESP32_C3.yml +0 -23
  379. data/vendor/board-maps/yaml/VIYALAB_MIZU_RP2040.yml +0 -48
  380. data/vendor/board-maps/yaml/WATCHY.yml +0 -7
  381. data/vendor/board-maps/yaml/WATCHY_V10.yml +0 -7
  382. data/vendor/board-maps/yaml/WATCHY_V15.yml +0 -7
  383. data/vendor/board-maps/yaml/WATCHY_V20.yml +0 -7
  384. data/vendor/board-maps/yaml/WAVESHARE_RP2040_LCD_0_96.yml +0 -47
  385. data/vendor/board-maps/yaml/WAVESHARE_RP2040_LCD_1_28.yml +0 -47
  386. data/vendor/board-maps/yaml/WAVESHARE_RP2040_ONE.yml +0 -47
  387. data/vendor/board-maps/yaml/WAVESHARE_RP2040_PLUS.yml +0 -48
  388. data/vendor/board-maps/yaml/WAVESHARE_RP2040_ZERO.yml +0 -47
  389. data/vendor/board-maps/yaml/WESP32.yml +0 -17
  390. data/vendor/board-maps/yaml/WIDORA_AIR.yml +0 -34
  391. data/vendor/board-maps/yaml/WIFIDUINO_ESP8266.yml +0 -23
  392. data/vendor/board-maps/yaml/WIFINFO.yml +0 -20
  393. data/vendor/board-maps/yaml/WIPY3.yml +0 -37
  394. data/vendor/board-maps/yaml/WIZNET_5100S_EVB_PICO.yml +0 -48
  395. data/vendor/board-maps/yaml/WIZNET_5500_EVB_PICO.yml +0 -48
  396. data/vendor/board-maps/yaml/WIZNET_WIZFI360_EVB_PICO.yml +0 -48
  397. data/vendor/board-maps/yaml/WT32_ETH01.yml +0 -8
  398. data/vendor/board-maps/yaml/WiFiduino32S3.yml +0 -27
  399. data/vendor/board-maps/yaml/WiFiduinoV2.yml +0 -27
  400. data/vendor/board-maps/yaml/Wifiduino32.yml +0 -40
  401. data/vendor/board-maps/yaml/XIAO_ESP32C3.yml +0 -22
  402. data/vendor/board-maps/yaml/XIAO_ESP32S3.yml +0 -37
  403. data/vendor/board-maps/yaml/YD_RP2040.yml +0 -48
  404. data/vendor/board-maps/yaml/atmegazero_esp32s2.yml +0 -30
  405. data/vendor/board-maps/yaml/connaxio_espoir.yml +0 -24
  406. data/vendor/board-maps/yaml/esp32vn_iot_uno.yml +0 -31
  407. data/vendor/board-maps/yaml/fm_devkit.yml +0 -15
  408. data/vendor/board-maps/yaml/heltec_wifi_32_lora_V3.yml +0 -41
  409. data/vendor/board-maps/yaml/heltec_wifi_kit_32.yml +0 -38
  410. data/vendor/board-maps/yaml/heltec_wifi_kit_32_V3.yml +0 -42
  411. data/vendor/board-maps/yaml/heltec_wifi_lora_32.yml +0 -36
  412. data/vendor/board-maps/yaml/heltec_wifi_lora_32_V2.yml +0 -36
  413. data/vendor/board-maps/yaml/heltec_wireless_stick.yml +0 -36
  414. data/vendor/board-maps/yaml/heltec_wireless_stick_LITE.yml +0 -36
  415. data/vendor/board-maps/yaml/openkb.yml +0 -37
  416. data/vendor/board-maps/yaml/roboheart_hercules.yml +0 -26
  417. data/vendor/board-maps/yaml/sensesiot_weizen.yml +0 -35
  418. data/vendor/board-maps/yaml/uPesy_WROOM.yml +0 -36
  419. data/vendor/board-maps/yaml/uPesy_WROVER.yml +0 -36
  420. data/vendor/board-maps/yaml/unphone8.yml +0 -42
  421. data/vendor/board-maps/yaml/unphone9.yml +0 -42
  422. data/vendor/board-maps/yaml/wifi_kit_8.yml +0 -15
@@ -10,7 +10,7 @@ class DigitalIOOutputTest < Minitest::Test
10
10
  end
11
11
 
12
12
  def test_read_state_on_initialize
13
- mock = MiniTest::Mock.new.expect :call, nil, [14]
13
+ mock = Minitest::Mock.new.expect :call, nil, [14]
14
14
  board.stub(:digital_read, mock) do
15
15
  part
16
16
  end
@@ -19,7 +19,7 @@ class DigitalIOOutputTest < Minitest::Test
19
19
 
20
20
  def test_digital_write
21
21
  part
22
- mock = MiniTest::Mock.new
22
+ mock = Minitest::Mock.new
23
23
  mock.expect :call, nil, [14, board.high]
24
24
  mock.expect :call, nil, [14, board.low]
25
25
  mock.expect :call, nil, [14, board.low]
@@ -36,7 +36,7 @@ class DigitalIOOutputTest < Minitest::Test
36
36
 
37
37
  def test_high_and_low
38
38
  part
39
- mock = MiniTest::Mock.new
39
+ mock = Minitest::Mock.new
40
40
  mock.expect :call, nil, [board.high]
41
41
  mock.expect :call, nil, [board.low]
42
42
  part.stub(:digital_write, mock) do
@@ -48,14 +48,14 @@ class DigitalIOOutputTest < Minitest::Test
48
48
 
49
49
  def test_toggle
50
50
  part.low
51
- mock = MiniTest::Mock.new.expect :call, nil
51
+ mock = Minitest::Mock.new.expect :call, nil
52
52
  part.stub(:high, mock) do
53
53
  part.toggle
54
54
  end
55
55
  mock.verify
56
56
 
57
57
  part.high
58
- mock = MiniTest::Mock.new.expect :call, nil
58
+ mock = Minitest::Mock.new.expect :call, nil
59
59
  part.stub(:low, mock) do
60
60
  part.toggle
61
61
  end
@@ -1,6 +1,6 @@
1
1
  require_relative '../test_helper'
2
2
 
3
- class RotaryEncoderTest < MiniTest::Test
3
+ class RotaryEncoderTest < Minitest::Test
4
4
  def board
5
5
  @board ||= BoardMock.new
6
6
  end
@@ -19,9 +19,9 @@ class RotaryEncoderTest < MiniTest::Test
19
19
  end
20
20
 
21
21
  def test_calls_listen_on_both_pins_with_given_divider
22
- clock_mock = MiniTest::Mock.new.expect(:call, nil, [1])
22
+ clock_mock = Minitest::Mock.new.expect(:call, nil, [1])
23
23
  clock_mock.expect(:call, nil, [2])
24
- data_mock = MiniTest::Mock.new.expect(:call, nil, [1])
24
+ data_mock = Minitest::Mock.new.expect(:call, nil, [1])
25
25
  data_mock.expect(:call, nil, [2])
26
26
 
27
27
  part.clock.stub(:listen, clock_mock) do
@@ -33,7 +33,7 @@ class RotaryEncoderTest < MiniTest::Test
33
33
  end
34
34
 
35
35
  def test_observes_on_initialize
36
- mock = MiniTest::Mock.new.expect(:call, nil)
36
+ mock = Minitest::Mock.new.expect(:call, nil)
37
37
  part.stub(:observe_pins, mock) do
38
38
  part.send(:after_initialize)
39
39
  end
@@ -1,6 +1,6 @@
1
1
  require_relative '../test_helper'
2
2
 
3
- class HD44780Test < MiniTest::Test
3
+ class HD44780Test < Minitest::Test
4
4
  def board
5
5
  @board ||= BoardMock.new
6
6
  end
@@ -37,7 +37,7 @@ class BuiltInEEPROMTest < Minitest::Test
37
37
  end
38
38
 
39
39
  def test_delegates_to_state_array
40
- mock = MiniTest::Mock.new
40
+ mock = Minitest::Mock.new
41
41
  mock.expect(:[], 255, [0])
42
42
  mock.expect(:[]=, 128, [1, 128])
43
43
  mock.expect(:each, nil)
data/test/i2c/bus_test.rb CHANGED
@@ -4,7 +4,7 @@ class I2CPeripheralBase
4
4
  include Denko::I2C::Peripheral
5
5
  end
6
6
 
7
- class I2CBusTest < MiniTest::Test
7
+ class I2CBusTest < Minitest::Test
8
8
  def board
9
9
  @board ||= BoardMock.new
10
10
  end
@@ -27,7 +27,7 @@ class I2CBusTest < MiniTest::Test
27
27
  def test_search
28
28
  board.inject_read_for_pin(5, "48:50")
29
29
 
30
- mock = MiniTest::Mock.new.expect :call, nil
30
+ mock = Minitest::Mock.new.expect :call, nil
31
31
  board.stub(:i2c_search, mock) do
32
32
  part.search
33
33
  end
@@ -37,7 +37,7 @@ class I2CBusTest < MiniTest::Test
37
37
  end
38
38
 
39
39
  def test_write
40
- mock = MiniTest::Mock.new.expect :call, nil, [0x30, [0x01, 0x02], 100000, false]
40
+ mock = Minitest::Mock.new.expect :call, nil, [0x30, [0x01, 0x02], 100000, false]
41
41
  board.stub(:i2c_write, mock) do
42
42
  part.write 0x30, [0x01, 0x02]
43
43
  end
@@ -47,7 +47,7 @@ class I2CBusTest < MiniTest::Test
47
47
  def test__read
48
48
  board.inject_read_for_pin(5, "48-255,0,255,0,255,0")
49
49
 
50
- mock = MiniTest::Mock.new.expect :call, nil, [0x32, 0x03, 6, 100000, false]
50
+ mock = Minitest::Mock.new.expect :call, nil, [0x32, 0x03, 6, 100000, false]
51
51
  board.stub(:i2c_read, mock) do
52
52
  part.read 0x32, 0x03, 6
53
53
  end
@@ -55,7 +55,7 @@ class I2CBusTest < MiniTest::Test
55
55
  end
56
56
 
57
57
  def test_updates_peripherals
58
- mock = MiniTest::Mock.new.expect :call, nil, [[255, 127]]
58
+ mock = Minitest::Mock.new.expect :call, nil, [[255, 127]]
59
59
 
60
60
  peripheral.stub(:update, mock) do
61
61
  part.send(:update, "48-255,127")
@@ -4,7 +4,7 @@ class I2CPeripheralBase
4
4
  include Denko::I2C::Peripheral
5
5
  end
6
6
 
7
- class I2CPeripheralTest < MiniTest::Test
7
+ class I2CPeripheralTest < Minitest::Test
8
8
  def board
9
9
  @board ||= BoardMock.new
10
10
  end
@@ -22,7 +22,7 @@ class I2CPeripheralTest < MiniTest::Test
22
22
  def test_write_and_repeated_start
23
23
  part.i2c_repeated_start = true
24
24
 
25
- mock = MiniTest::Mock.new.expect :call, nil, [0x30, [1,2], 100000, true]
25
+ mock = Minitest::Mock.new.expect :call, nil, [0x30, [1,2], 100000, true]
26
26
  bus.stub(:write, mock) do
27
27
  part.i2c_write [1,2]
28
28
  end
@@ -31,7 +31,7 @@ class I2CPeripheralTest < MiniTest::Test
31
31
  def test_frequency
32
32
  part.i2c_frequency = 400000
33
33
 
34
- mock = MiniTest::Mock.new.expect :call, nil, [0x30, [1,2], 400000, false]
34
+ mock = Minitest::Mock.new.expect :call, nil, [0x30, [1,2], 400000, false]
35
35
  bus.stub(:write, mock) do
36
36
  part.i2c_write [1,2]
37
37
  end
@@ -42,7 +42,7 @@ class I2CPeripheralTest < MiniTest::Test
42
42
 
43
43
  board.inject_read_for_component(part, 5, "48-127,127,127,127,127,127")
44
44
 
45
- mock = MiniTest::Mock.new.expect :call, nil, [0x30, 0x03, 6, 100000, true]
45
+ mock = Minitest::Mock.new.expect :call, nil, [0x30, 0x03, 6, 100000, true]
46
46
  bus.stub(:read, mock) do
47
47
  part.i2c_read(0x03, 6)
48
48
  end
@@ -1,6 +1,6 @@
1
1
  require_relative '../test_helper'
2
2
 
3
- class BaseLEDTest < MiniTest::Test
3
+ class BaseLEDTest < Minitest::Test
4
4
  def board
5
5
  @board ||= BoardMock.new
6
6
  end
@@ -15,7 +15,7 @@ class BaseLEDTest < MiniTest::Test
15
15
  end
16
16
 
17
17
  def test_blink_runs_in_thread
18
- mock = MiniTest::Mock.new.expect :call, nil
18
+ mock = Minitest::Mock.new.expect :call, nil
19
19
  part.stub(:threaded_loop, mock) do
20
20
  part.blink(0.5)
21
21
  end
data/test/led/rgb_test.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require_relative '../test_helper'
2
2
 
3
- class RGBLEDTest < MiniTest::Test
3
+ class RGBLEDTest < Minitest::Test
4
4
  def board
5
5
  @board ||= BoardMock.new
6
6
  end
@@ -20,9 +20,9 @@ class RGBLEDTest < MiniTest::Test
20
20
  end
21
21
 
22
22
  def test_write
23
- red_mock = MiniTest::Mock.new.expect :write, nil, [0]
24
- green_mock = MiniTest::Mock.new.expect :write, nil, [128]
25
- blue_mock = MiniTest::Mock.new.expect :write, nil, [0]
23
+ red_mock = Minitest::Mock.new.expect :write, nil, [0]
24
+ green_mock = Minitest::Mock.new.expect :write, nil, [128]
25
+ blue_mock = Minitest::Mock.new.expect :write, nil, [0]
26
26
 
27
27
  part.stub(:red, red_mock) do
28
28
  part.stub(:green, green_mock) do
@@ -37,7 +37,7 @@ class RGBLEDTest < MiniTest::Test
37
37
  end
38
38
 
39
39
  def test_color_array
40
- mock = MiniTest::Mock.new.expect :call, nil, [[128,0,0]]
40
+ mock = Minitest::Mock.new.expect :call, nil, [[128,0,0]]
41
41
  part.stub(:write, mock) do
42
42
  part.color = [128,0,0]
43
43
  end
@@ -47,7 +47,7 @@ class RGBLEDTest < MiniTest::Test
47
47
  def test_color_names
48
48
  colors = Denko::LED::RGB::COLORS
49
49
 
50
- mock = MiniTest::Mock.new
50
+ mock = Minitest::Mock.new
51
51
  colors.each_value do |color|
52
52
  mock.expect :call, nil, [color]
53
53
  mock.expect :call, nil, [color]
@@ -1,6 +1,6 @@
1
1
  require_relative '../test_helper'
2
2
 
3
- class SevenSegmentLEDTest < MiniTest::Test
3
+ class SevenSegmentLEDTest < Minitest::Test
4
4
  def board
5
5
  @board ||= BoardMock.new
6
6
  end
@@ -25,7 +25,7 @@ class SevenSegmentLEDTest < MiniTest::Test
25
25
  # Avoid reusing pins which would raise a Board error.
26
26
  def part.initialize_pins(options={}); end
27
27
 
28
- mock = MiniTest::Mock.new.expect :call, nil
28
+ mock = Minitest::Mock.new.expect :call, nil
29
29
  part.stub(:clear, mock) do
30
30
  part.send(:initialize, options)
31
31
  end
@@ -36,7 +36,7 @@ class SevenSegmentLEDTest < MiniTest::Test
36
36
  # Avoid reusing pins which would raise a Board error.
37
37
  def part.initialize_pins(options={}); end
38
38
 
39
- mock = MiniTest::Mock.new.expect :call, nil
39
+ mock = Minitest::Mock.new.expect :call, nil
40
40
  part.stub(:on, mock) do
41
41
  part.send(:initialize, options)
42
42
  end
@@ -44,7 +44,7 @@ class SevenSegmentLEDTest < MiniTest::Test
44
44
  end
45
45
 
46
46
  def test_on
47
- mock = MiniTest::Mock.new.expect :high, nil
47
+ mock = Minitest::Mock.new.expect :high, nil
48
48
  part.stub(:anode, mock) do
49
49
  part.on
50
50
  end
@@ -52,7 +52,7 @@ class SevenSegmentLEDTest < MiniTest::Test
52
52
  end
53
53
 
54
54
  def test_off
55
- mock = MiniTest::Mock.new.expect :low, nil
55
+ mock = Minitest::Mock.new.expect :low, nil
56
56
  part.stub(:anode, mock) do
57
57
  part.off
58
58
  end
@@ -60,7 +60,7 @@ class SevenSegmentLEDTest < MiniTest::Test
60
60
  end
61
61
 
62
62
  def test_scroll
63
- mock = MiniTest::Mock.new
63
+ mock = Minitest::Mock.new
64
64
  mock.expect :call, nil, ['H']
65
65
  mock.expect :call, nil, ['I']
66
66
  part.stub(:write, mock) do
@@ -71,7 +71,7 @@ class SevenSegmentLEDTest < MiniTest::Test
71
71
 
72
72
  def test_display_ensures_on
73
73
  part.off
74
- mock = MiniTest::Mock.new.expect :call, nil
74
+ mock = Minitest::Mock.new.expect :call, nil
75
75
  part.stub(:on, mock) do
76
76
  part.display(1)
77
77
  end
@@ -85,7 +85,7 @@ class SevenSegmentLEDTest < MiniTest::Test
85
85
  # Expect every segment to get #write(1). Inverted logic because anode.
86
86
  mocks = []
87
87
  part.segments.each do
88
- mocks << MiniTest::Mock.new.expect(:call, nil, [1])
88
+ mocks << Minitest::Mock.new.expect(:call, nil, [1])
89
89
  end
90
90
  part.segments[0].stub(:write, mocks[0]) do
91
91
  part.segments[1].stub(:write, mocks[1]) do
@@ -1,6 +1,6 @@
1
1
  require_relative '../test_helper'
2
2
 
3
- class ServoMotorTest < MiniTest::Test
3
+ class ServoMotorTest < Minitest::Test
4
4
  def board
5
5
  @board ||= BoardMock.new
6
6
  end
@@ -10,7 +10,7 @@ class ServoMotorTest < MiniTest::Test
10
10
  end
11
11
 
12
12
  def test_toggle_on_initialize
13
- mock = MiniTest::Mock.new.expect(:call, nil, [1, :on], min: 544, max: 2400)
13
+ mock = Minitest::Mock.new.expect(:call, nil, [1, :on], min: 544, max: 2400)
14
14
  board.stub(:servo_toggle, mock) do
15
15
  Denko::Motor::Servo.new(board: board, pin:1)
16
16
  end
@@ -19,14 +19,14 @@ class ServoMotorTest < MiniTest::Test
19
19
 
20
20
  def test_attach
21
21
  part
22
- mock = MiniTest::Mock.new.expect(:call, nil, [1, :on], min: 0, max: 360)
22
+ mock = Minitest::Mock.new.expect(:call, nil, [1, :on], min: 0, max: 360)
23
23
  board.stub(:servo_toggle, mock) { part.attach }
24
24
  mock.verify
25
25
  end
26
26
 
27
27
  def test_detach
28
28
  part
29
- mock = MiniTest::Mock.new.expect(:call, nil, [1, :off])
29
+ mock = Minitest::Mock.new.expect(:call, nil, [1, :off])
30
30
  board.stub(:servo_toggle, mock) { part.detach }
31
31
  mock.verify
32
32
  end
@@ -44,7 +44,7 @@ class ServoMotorTest < MiniTest::Test
44
44
 
45
45
  def test_position_writes_mapped_microseconds_to_board
46
46
  part
47
- mock = MiniTest::Mock.new.expect(:call, nil, [1, 20])
47
+ mock = Minitest::Mock.new.expect(:call, nil, [1, 20])
48
48
  board.stub(:servo_write, mock) do
49
49
  part.position = 10
50
50
  end
@@ -53,7 +53,7 @@ class ServoMotorTest < MiniTest::Test
53
53
 
54
54
  def test_speed_writes_mapped_microseconds_to_board
55
55
  part
56
- mock = MiniTest::Mock.new.expect(:call, nil, [1, 180])
56
+ mock = Minitest::Mock.new.expect(:call, nil, [1, 180])
57
57
  board.stub(:servo_write, mock) do
58
58
  part.speed = 0
59
59
  end
@@ -1,6 +1,6 @@
1
1
  require_relative '../test_helper'
2
2
 
3
- class StepperMotorTest < MiniTest::Test
3
+ class StepperMotorTest < Minitest::Test
4
4
  def board
5
5
  @board ||= BoardMock.new
6
6
  end
@@ -16,10 +16,10 @@ class StepperMotorTest < MiniTest::Test
16
16
  end
17
17
 
18
18
  def test_step_cw
19
- dir_mock = MiniTest::Mock.new
19
+ dir_mock = Minitest::Mock.new
20
20
  dir_mock.expect :low?, false
21
21
  dir_mock.expect :low, nil
22
- step_mock = MiniTest::Mock.new
22
+ step_mock = Minitest::Mock.new
23
23
  step_mock.expect :high, nil
24
24
  step_mock.expect :low, nil
25
25
 
@@ -33,10 +33,10 @@ class StepperMotorTest < MiniTest::Test
33
33
  end
34
34
 
35
35
  def test_step_cc
36
- dir_mock = MiniTest::Mock.new
36
+ dir_mock = Minitest::Mock.new
37
37
  dir_mock.expect :high?, false
38
38
  dir_mock.expect :high, nil
39
- step_mock = MiniTest::Mock.new
39
+ step_mock = Minitest::Mock.new
40
40
  step_mock.expect :high, nil
41
41
  step_mock.expect :low, nil
42
42
 
@@ -1,6 +1,6 @@
1
1
  require_relative '../test_helper'
2
2
 
3
- class OneWireBusTest < MiniTest::Test
3
+ class OneWireBusTest < Minitest::Test
4
4
  def board
5
5
  @board ||= BoardMock.new
6
6
  end
@@ -19,7 +19,7 @@ class OneWireBusTest < MiniTest::Test
19
19
  end
20
20
 
21
21
  def test_read_power_supply_locks_mutex
22
- mock = MiniTest::Mock.new.expect(:call, nil)
22
+ mock = Minitest::Mock.new.expect(:call, nil)
23
23
  part.mutex.stub(:synchronize, mock) do
24
24
  part.read_power_supply
25
25
  end
@@ -39,7 +39,7 @@ class OneWireBusTest < MiniTest::Test
39
39
  end
40
40
 
41
41
  def test_read_power_supply_sends_board_commands
42
- board_mock = MiniTest::Mock.new
42
+ board_mock = Minitest::Mock.new
43
43
  board_mock.expect(:set_pin_mode, nil, [part.pin, :output])
44
44
  board_mock.expect(:low, 0)
45
45
  board_mock.expect(:digital_write, nil, [part.pin, 0])
@@ -47,7 +47,7 @@ class OneWireBusTest < MiniTest::Test
47
47
  board_mock.expect(:one_wire_write, nil, [part.pin, false, [0xCC, 0xB4]])
48
48
 
49
49
  # Stub the parasite power response from the board.
50
- read_mock = MiniTest::Mock.new
50
+ read_mock = Minitest::Mock.new
51
51
  read_mock.expect(:call, 0, [1])
52
52
 
53
53
  part.stub(:board, board_mock) do
@@ -65,7 +65,7 @@ class OneWireBusTest < MiniTest::Test
65
65
  # part.device_present calls #reset which expects a response.
66
66
  board.inject_read_for_component(part, 1, "1")
67
67
 
68
- mock = MiniTest::Mock.new.expect(:call, nil)
68
+ mock = Minitest::Mock.new.expect(:call, nil)
69
69
  part.mutex.stub(:synchronize, mock) do
70
70
  part.device_present
71
71
  end
@@ -73,7 +73,7 @@ class OneWireBusTest < MiniTest::Test
73
73
  end
74
74
 
75
75
  def test_set_device_present
76
- mock = MiniTest::Mock.new
76
+ mock = Minitest::Mock.new
77
77
  mock.expect(:call, nil, [1])
78
78
  mock.expect(:call, nil, [1])
79
79
 
@@ -96,7 +96,7 @@ class OneWireBusTest < MiniTest::Test
96
96
 
97
97
  def test_reset
98
98
  part
99
- mock = MiniTest::Mock.new
99
+ mock = Minitest::Mock.new
100
100
  mock.expect :call, nil, [1, 1]
101
101
  mock.expect :call, nil, [1, 0]
102
102
 
@@ -109,7 +109,7 @@ class OneWireBusTest < MiniTest::Test
109
109
 
110
110
  def test__read
111
111
  part
112
- mock = MiniTest::Mock.new.expect :call, nil, [1, 4]
112
+ mock = Minitest::Mock.new.expect :call, nil, [1, 4]
113
113
  board.stub(:one_wire_read, mock) do
114
114
  part._read(4)
115
115
  end
@@ -118,7 +118,7 @@ class OneWireBusTest < MiniTest::Test
118
118
 
119
119
  def test_write
120
120
  part
121
- mock = MiniTest::Mock.new
121
+ mock = Minitest::Mock.new
122
122
  mock.expect :call, nil, [1, true, [255, 177, 0x44]]
123
123
  mock.expect :call, nil, [1, true, [255, 177, 0x48]]
124
124
  mock.expect :call, nil, [1, false, [255, 177, 0x55]]
@@ -1,6 +1,6 @@
1
1
  require_relative '../test_helper'
2
2
 
3
- class OneWirePeripheralTest < MiniTest::Test
3
+ class OneWirePeripheralTest < Minitest::Test
4
4
  def board
5
5
  @board ||= BoardMock.new
6
6
  end
@@ -21,7 +21,7 @@ class OneWirePeripheralTest < MiniTest::Test
21
21
  end
22
22
 
23
23
  def test_atomically_locks_the_bus_mutex
24
- mock = MiniTest::Mock.new.expect(:synchronize, nil)
24
+ mock = Minitest::Mock.new.expect(:synchronize, nil)
25
25
  bus.stub(:mutex, mock) do
26
26
  part.atomically {}
27
27
  end
@@ -29,13 +29,13 @@ class OneWirePeripheralTest < MiniTest::Test
29
29
  end
30
30
 
31
31
  def test_atomically_calls_the_block_once
32
- mock = MiniTest::Mock.new.expect(:call, nil)
32
+ mock = Minitest::Mock.new.expect(:call, nil)
33
33
  part.atomically { mock.call }
34
34
  mock.verify
35
35
  end
36
36
 
37
37
  def test_match_calls_reset
38
- mock = MiniTest::Mock.new.expect(:call, nil)
38
+ mock = Minitest::Mock.new.expect(:call, nil)
39
39
  bus.stub(:reset, mock) do
40
40
  part.match
41
41
  end
@@ -43,7 +43,7 @@ class OneWirePeripheralTest < MiniTest::Test
43
43
  end
44
44
 
45
45
  def test_match_skips_rom_if_alone
46
- mock = MiniTest::Mock.new.expect(:call, nil, [0xCC])
46
+ mock = Minitest::Mock.new.expect(:call, nil, [0xCC])
47
47
  bus.stub(:write, mock) do
48
48
  part.match
49
49
  end
@@ -51,7 +51,7 @@ class OneWirePeripheralTest < MiniTest::Test
51
51
  end
52
52
 
53
53
  def test_match_matches_rom_if_not_alone
54
- mock = MiniTest::Mock.new
54
+ mock = Minitest::Mock.new
55
55
  mock.expect(:call, nil, [0x55])
56
56
  mock.expect(:call, nil, [[255,255,255,255,255,255,255,255]])
57
57
  bus.instance_variable_set(:@found_devices, [1,2])
@@ -62,19 +62,19 @@ class OneWirePeripheralTest < MiniTest::Test
62
62
  end
63
63
 
64
64
  def test_copy_scratch_is_atomic
65
- mock = MiniTest::Mock.new.expect(:call, nil)
65
+ mock = Minitest::Mock.new.expect(:call, nil)
66
66
  part.stub(:atomically, mock) { part.copy_scratch }
67
67
  mock.verify
68
68
  end
69
69
 
70
70
  def test_copy_scratch_matches_first
71
- mock = MiniTest::Mock.new.expect(:call, nil)
71
+ mock = Minitest::Mock.new.expect(:call, nil)
72
72
  part.stub(:match, mock) { part.copy_scratch }
73
73
  mock.verify
74
74
  end
75
75
 
76
76
  def test_copy_scratch_sends_the_command
77
- mock = MiniTest::Mock.new
77
+ mock = Minitest::Mock.new
78
78
  mock.expect(:call, nil, [0xCC])
79
79
  mock.expect(:call, nil, [0x48])
80
80
  bus.stub(:write, mock) { part.copy_scratch }
@@ -82,7 +82,7 @@ class OneWirePeripheralTest < MiniTest::Test
82
82
  end
83
83
 
84
84
  def test_copy_scratch_resets_after_command_if_parasite_power
85
- mock = MiniTest::Mock.new.expect(:call, nil).expect(:call, nil)
85
+ mock = Minitest::Mock.new.expect(:call, nil).expect(:call, nil)
86
86
  bus.stub(:parasite_power, true) do
87
87
  bus.stub(:reset, mock) { part.copy_scratch }
88
88
  end
@@ -95,7 +95,7 @@ class OneWirePeripheralTest < MiniTest::Test
95
95
  # Will read 9 bytes.
96
96
  board.inject_read_for_component(bus, 1, "255,255,255,255,255,255,255,255")
97
97
 
98
- mock = MiniTest::Mock.new.expect(:call, nil)
98
+ mock = Minitest::Mock.new.expect(:call, nil)
99
99
  part.stub(:atomically, mock) { part.read_scratch(9) }
100
100
  mock.verify
101
101
  end
@@ -106,7 +106,7 @@ class OneWirePeripheralTest < MiniTest::Test
106
106
  # Will read 9 bytes.
107
107
  board.inject_read_for_component(bus, 1, "255,255,255,255,255,255,255,255")
108
108
 
109
- mock = MiniTest::Mock.new.expect(:call, nil)
109
+ mock = Minitest::Mock.new.expect(:call, nil)
110
110
  part.stub(:match, mock) { part.read_scratch(9) }
111
111
  mock.verify
112
112
  end
@@ -117,7 +117,7 @@ class OneWirePeripheralTest < MiniTest::Test
117
117
  # Will read 9 bytes.
118
118
  board.inject_read_for_component(bus, 1, "255,255,255,255,255,255,255,255")
119
119
 
120
- mock = MiniTest::Mock.new
120
+ mock = Minitest::Mock.new
121
121
  mock.expect(:call, nil, [0xCC])
122
122
  mock.expect(:call, nil, [0xBE])
123
123
  bus.stub(:write, mock) { part.read_scratch(9) }
@@ -130,25 +130,25 @@ class OneWirePeripheralTest < MiniTest::Test
130
130
  # Will read 9 bytes.
131
131
  board.inject_read_for_component(bus, 1, "255,255,255,255,255,255,255,255")
132
132
 
133
- mock = MiniTest::Mock.new.expect(:call, nil, [9])
133
+ mock = Minitest::Mock.new.expect(:call, nil, [9])
134
134
  bus.stub(:read, mock) { part.read_scratch(9) }
135
135
  mock.verify
136
136
  end
137
137
 
138
138
  def test_write_scratch_is_atomic
139
- mock = MiniTest::Mock.new.expect(:call, nil)
139
+ mock = Minitest::Mock.new.expect(:call, nil)
140
140
  part.stub(:atomically, mock) { part.write_scratch(1) }
141
141
  mock.verify
142
142
  end
143
143
 
144
144
  def test_write_scratch_matches_first
145
- mock = MiniTest::Mock.new.expect(:call, nil)
145
+ mock = Minitest::Mock.new.expect(:call, nil)
146
146
  part.stub(:match, mock) { part.write_scratch(1) }
147
147
  mock.verify
148
148
  end
149
149
 
150
150
  def test_write_scratch_sends_the_command_and_data
151
- mock = MiniTest::Mock.new
151
+ mock = Minitest::Mock.new
152
152
  mock.expect(:call, nil, [0xCC])
153
153
  mock.expect(:call, nil, [0x4E])
154
154
  mock.expect(:call, nil, [1,2,3])
@@ -1,6 +1,6 @@
1
1
  require_relative '../test_helper'
2
2
 
3
- class BuzzerTest < MiniTest::Test
3
+ class BuzzerTest < Minitest::Test
4
4
  def board
5
5
  @board ||= BoardMock.new
6
6
  end
@@ -14,7 +14,7 @@ class BuzzerTest < MiniTest::Test
14
14
  end
15
15
 
16
16
  def test_tone
17
- mock = MiniTest::Mock.new
17
+ mock = Minitest::Mock.new
18
18
  mock.expect :call, nil, [part.pin, 60, nil]
19
19
  mock.expect :call, nil, [part.pin, 120, 2000]
20
20
  board.stub(:tone, mock) do
@@ -26,7 +26,7 @@ class BuzzerTest < MiniTest::Test
26
26
 
27
27
  def test_no_tone
28
28
  part
29
- mock = MiniTest::Mock.new
29
+ mock = Minitest::Mock.new
30
30
  mock.expect :call, nil, [part.pin]
31
31
  board.stub(:no_tone, mock) do
32
32
  part.no_tone
@@ -35,7 +35,7 @@ class BuzzerTest < MiniTest::Test
35
35
  end
36
36
 
37
37
  def stop
38
- mock = MiniTest::Mock.new
38
+ mock = Minitest::Mock.new
39
39
  mock.expect :call, nil
40
40
  mock.expect :call, nil
41
41
  part.stub(:kill_thread, mock) do
@@ -1,6 +1,6 @@
1
1
  require_relative '../test_helper'
2
2
 
3
- class IRTransmitterTest < MiniTest::Test
3
+ class IRTransmitterTest < Minitest::Test
4
4
  def board
5
5
  @board ||= BoardMock.new
6
6
  end
@@ -29,7 +29,7 @@ class IRTransmitterTest < MiniTest::Test
29
29
 
30
30
  def test_emits
31
31
  part
32
- mock = MiniTest::Mock.new.expect(:call, nil, [1, 38, [127,0]])
32
+ mock = Minitest::Mock.new.expect(:call, nil, [1, 38, [127,0]])
33
33
  board.stub(:infrared_emit, mock) do
34
34
  part.emit([127,0])
35
35
  end
@@ -10,8 +10,8 @@ class PWMOutTest < Minitest::Test
10
10
  end
11
11
 
12
12
  def test_pwm_write
13
- enable_mock = MiniTest::Mock.new.expect :call, nil
14
- write_mock = MiniTest::Mock.new
13
+ enable_mock = Minitest::Mock.new.expect :call, nil
14
+ write_mock = Minitest::Mock.new
15
15
  write_mock.expect :call, nil, [14, 128]
16
16
 
17
17
  board.stub(:pwm_write, write_mock) do
@@ -31,7 +31,7 @@ class PWMOutTest < Minitest::Test
31
31
  end
32
32
 
33
33
  def test_write_uses_digital_write_at_limits
34
- mock = MiniTest::Mock.new
34
+ mock = Minitest::Mock.new
35
35
  mock.expect :call, nil, [board.high]
36
36
  mock.expect :call, nil, [board.low]
37
37
  part.stub(:digital_write, mock) do
@@ -42,7 +42,7 @@ class PWMOutTest < Minitest::Test
42
42
  end
43
43
 
44
44
  def test_write_uses_analog_write_between_limits
45
- mock = MiniTest::Mock.new.expect :call, nil, [128]
45
+ mock = Minitest::Mock.new.expect :call, nil, [128]
46
46
  part.stub(:pwm_write, mock) do
47
47
  part.write(128)
48
48
  end