Skip to content

Commit

Permalink
Merge pull request #7 from LambdaCalculus37/main
Browse files Browse the repository at this point in the history
Added redbox data for Canadaian payphone coin tones
  • Loading branch information
litui authored Nov 17, 2022
2 parents 610de49 + db16f72 commit 6006c9f
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion dtmf_dolphin_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, {0, 0, 5}, 1, 66, 0},
{"Dime", 2200.0, 0.0, {1, 0, 5}, 2, 66, 66},
{"Quarter", 2200.0, 0.0, {2, 0, 5}, 5, 33, 33},
}
};

DTMFDolphinSceneData DTMFDolphinSceneDataRedboxUK = {
.name = "Redbox (UK)",
.block = DTMF_DOLPHIN_TONE_BLOCK_REDBOX_UK,
Expand Down Expand Up @@ -115,6 +126,9 @@ void dtmf_dolphin_data_set_current_section(DTMFDolphinToneSection section) {
case DTMF_DOLPHIN_TONE_BLOCK_REDBOX_US:
current_scene_data = &DTMFDolphinSceneDataRedboxUS;
break;
case DTMF_DOLPHIN_TONE_BLOCK_REDBOX_CA:
current_scene_data = &DTMFDolphinSceneDataRedboxCA;
break;
case DTMF_DOLPHIN_TONE_BLOCK_REDBOX_UK:
current_scene_data = &DTMFDolphinSceneDataRedboxUK;
break;
Expand Down Expand Up @@ -206,4 +220,4 @@ uint8_t dtmf_dolphin_get_tone_span(uint8_t row, uint8_t col) {
}
}
return 0;
}
}

0 comments on commit 6006c9f

Please sign in to comment.