소스 검색

Added redbox data for Canadaian payphone coin tones

Robert Menes 3 년 전
부모
커밋
320015c939
1개의 변경된 파일15개의 추가작업 그리고 1개의 파일을 삭제
  1. 15 1
      dtmf_dolphin_data.c

+ 15 - 1
dtmf_dolphin_data.c

@@ -80,6 +80,17 @@ DTMFDolphinSceneData DTMFDolphinSceneDataRedboxUS = {
     }
     }
 };
 };
 
 
+DTMFDolphinSceneData DTMFDolphinSceneDataRedboxCA = {
+    .name = "Redbox (CA)",
+    .block = DTMF_DOLPHIN_TONE_BLOCK_REDBOX_CA,
+    .tone_count = 3,
+    .tones = {
+      {"Nickel",  2200.0, {0, 0, 5}, 1, 66, 0},
+      {"Dime",    2200.0, {1, 0, 5}, 2, 66, 66},
+      {"Quarter", 2200.0, {2, 0, 5}, 5, 33, 33},
+    }
+};
+
 DTMFDolphinSceneData DTMFDolphinSceneDataRedboxUK = {
 DTMFDolphinSceneData DTMFDolphinSceneDataRedboxUK = {
     .name = "Redbox (UK)",
     .name = "Redbox (UK)",
     .block = DTMF_DOLPHIN_TONE_BLOCK_REDBOX_UK,
     .block = DTMF_DOLPHIN_TONE_BLOCK_REDBOX_UK,
@@ -115,6 +126,9 @@ void dtmf_dolphin_data_set_current_section(DTMFDolphinToneSection section) {
     case DTMF_DOLPHIN_TONE_BLOCK_REDBOX_US:
     case DTMF_DOLPHIN_TONE_BLOCK_REDBOX_US:
         current_scene_data = &DTMFDolphinSceneDataRedboxUS;
         current_scene_data = &DTMFDolphinSceneDataRedboxUS;
         break;
         break;
+    case DTMF_DOLPHIN_TONE_BLOCK_REDBOX_CA:
+        current_scene_data = &DTMFDolphinSceneDataRedboxCA;
+	break;
     case DTMF_DOLPHIN_TONE_BLOCK_REDBOX_UK:
     case DTMF_DOLPHIN_TONE_BLOCK_REDBOX_UK:
         current_scene_data = &DTMFDolphinSceneDataRedboxUK;
         current_scene_data = &DTMFDolphinSceneDataRedboxUK;
         break;
         break;
@@ -206,4 +220,4 @@ uint8_t dtmf_dolphin_get_tone_span(uint8_t row, uint8_t col) {
         }
         }
     }
     }
     return 0;
     return 0;
-}
+}