Skip to content

Commit

Permalink
Add RPI3B+ support and remove IMX6UL
Browse files Browse the repository at this point in the history
Update samples to add RPI3B+ and remove IMX6UL support.

Bug: 112590677
Bug: 112603667
Change-Id: I3b94e4bd5728e1e5d62e0c55ca3ba10caa8b56e2
  • Loading branch information
mangini committed Aug 15, 2018
1 parent b723ca9 commit b91202b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
5 changes: 2 additions & 3 deletions blink/src/main/cpp/blink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ const int BLINK_INTERVAL_MS = 1000;
void android_main(android_app* app) {
AndroidSystemProperties systemProperties(app->activity);
const char* LED_GPIO;
if (systemProperties.getBuildDevice() == "rpi3") {
if (systemProperties.getBuildDevice() == "rpi3" ||
systemProperties.getBuildDevice() == "rpi3bp") {
LED_GPIO = "BCM6";
} else if (systemProperties.getBuildDevice() == "imx6ul_pico") {
LED_GPIO = "GPIO4_IO22";
} else if (systemProperties.getBuildDevice() == "imx7d_pico") {
LED_GPIO = "GPIO2_IO02";
} else {
Expand Down
5 changes: 2 additions & 3 deletions button/src/main/cpp/button.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ const char* TAG = "button";
void android_main(android_app* app) {
AndroidSystemProperties systemProperties(app->activity);
const char* BUTTON_GPIO;
if (systemProperties.getBuildDevice() == "rpi3") {
if (systemProperties.getBuildDevice() == "rpi3" ||
systemProperties.getBuildDevice() == "rpi3bp") {
BUTTON_GPIO = "BCM21";
} else if (systemProperties.getBuildDevice() == "imx6ul_pico") {
BUTTON_GPIO = "GPIO2_IO03";
} else if (systemProperties.getBuildDevice() == "imx7d_pico") {
BUTTON_GPIO = "GPIO6_IO14";
} else {
Expand Down
5 changes: 2 additions & 3 deletions speaker/src/main/cpp/speaker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,9 @@ int64_t millis() {
void android_main(android_app* app) {
AndroidSystemProperties systemProperties(app->activity);
const char* SPEAKER_PWM;
if (systemProperties.getBuildDevice() == "rpi3") {
if (systemProperties.getBuildDevice() == "rpi3" ||
systemProperties.getBuildDevice() == "rpi3bp") {
SPEAKER_PWM = "PWM1";
} else if (systemProperties.getBuildDevice() == "imx6ul_pico") {
SPEAKER_PWM = "PWM8";
} else if (systemProperties.getBuildDevice() == "imx7d_pico") {
SPEAKER_PWM = "PWM2";
} else {
Expand Down

0 comments on commit b91202b

Please sign in to comment.