forked from leeseungcheol/ODROID-GO
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from hagen-git/master
Cleanup, add examples
- Loading branch information
Showing
8 changed files
with
40 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#include <odroid_go.h> | ||
#include <utility/music_8bit.h> | ||
|
||
void setup() { | ||
// put your setup code here, to run once: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#include <odroid_go.h> | ||
#include <utility/bmp_map.h> | ||
|
||
// Show M5STACK logo from bmp_map.h (rgb565 format) | ||
|
||
void setup() { | ||
GO.begin(); | ||
uint16_t *img = (uint16_t *)((void *)gImage_logoM5); | ||
GO.lcd.pushRect(0,0,320,240,img); | ||
} | ||
|
||
void loop() { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,37 @@ | ||
#ifndef _CONFIG_H_ | ||
#define _CONFIG_H_ | ||
|
||
#define TFT_DC 21 | ||
#define TFT_CS 5 | ||
#define TFT_LED_PIN 14 | ||
// TFT LCD via SPI | ||
#define TFT_DC 21 // Data/Control pin | ||
#define TFT_CS 5 // Chip Select | ||
#define TFT_LED_PIN 14 // Backlight enable | ||
#define TFT_MOSI 23 | ||
#define TFT_MISO 19 | ||
#define TFT_SCLK 18 | ||
#define TFT_RST -1 | ||
#define TFT_RST -1 // (not connected) | ||
|
||
// microSD Card (TF) via SPI | ||
#define SD_CARD_CS 22 | ||
|
||
// Digital Buttons | ||
#define BUTTON_A_PIN 32 | ||
#define BUTTON_B_PIN 33 | ||
|
||
#define BUTTON_MENU 13 | ||
#define BUTTON_SELECT 27 | ||
#define BUTTON_VOLUME 0 | ||
#define BUTTON_START 39 | ||
|
||
// Analog Buttons | ||
#define BUTTON_JOY_Y 35 | ||
#define BUTTON_JOY_X 34 | ||
|
||
|
||
// Speaker | ||
#define SPEAKER_ENABLE_PIN 25 | ||
#define SPEAKER_PIN 26 | ||
#define TONE_PIN_CHANNEL 0 | ||
#define TONE_PIN_CHANNEL 0 // PWM Channel | ||
|
||
// Status LED (blue) | ||
#define LED_STATUS_PIN 2 | ||
|
||
#endif |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters