-
-
Notifications
You must be signed in to change notification settings - Fork 24
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 #53 from CapibaraZero/develop/0.5.1
Develop/0.5.1
- Loading branch information
Showing
135 changed files
with
3,230 additions
and
1,971 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
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
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,56 @@ | ||
/* | ||
* This file is part of the Capibara zero (https://github.com/CapibaraZero/fw or | ||
* https://capibarazero.github.io/). Copyright (c) 2024 Andrea Canale. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, version 3. | ||
* | ||
* This program is distributed in the hope that it will be useful, but | ||
* WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
// Set your display resolution here | ||
#define DISPLAY_WIDTH 240 | ||
#define DISPLAY_HEIGHT 240 | ||
|
||
// Define buttons pins | ||
#define OK_BTN_PIN A3 | ||
#define UP_BTN_PIN A5 | ||
#define DOWN_BTN_PIN A2 | ||
#define LEFT_BTN_PIN A4 | ||
#define RIGHT_BTN_PIN A1 | ||
|
||
// Display pins | ||
#define TFT_CS D6 | ||
#define TFT_DC D5 | ||
#define TFT_RST -1 | ||
#define TFT_MOSI D2 | ||
#define TFT_MISO -1 | ||
#define TFT_SCLK D4 | ||
|
||
// SD card | ||
#define SD_CARD_CS D10 | ||
#define SD_CARD_MOSI D11 | ||
#define SD_CARD_MISO D12 | ||
#define SD_CARD_SCK D13 | ||
|
||
// SX1276(SubGHZ) | ||
#define SX1276_DIO1 D0 | ||
#define SX1276_NSS D7 | ||
#define SX1276_DIO2 D1 | ||
#define SX1276_MISO D9 | ||
|
||
// PN532(NFC) | ||
#define PN532_SCL A6 | ||
#define PN532_SDA A7 | ||
|
||
#define BATTERY_MONITOR A0 | ||
|
||
#define IR_RECEIVER_PIN D8 | ||
#define IR_EMITTER_PIN D3 |
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,54 @@ | ||
/* | ||
* This file is part of the Capibara zero (https://github.com/CapibaraZero/fw or | ||
* https://capibarazero.github.io/). Copyright (c) 2024 Andrea Canale. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, version 3. | ||
* | ||
* This program is distributed in the hope that it will be useful, but | ||
* WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
// Set your display resolution here | ||
#define DISPLAY_WIDTH 240 | ||
#define DISPLAY_HEIGHT 240 | ||
|
||
// Define buttons pins | ||
#define OK_BTN_PIN 40 | ||
#define UP_BTN_PIN 47 | ||
#define DOWN_BTN_PIN 41 | ||
#define LEFT_BTN_PIN 39 | ||
#define RIGHT_BTN_PIN 42 | ||
|
||
// Display pins | ||
#define TFT_RST 4 | ||
#define TFT_DC 5 | ||
#define TFT_CS 10 | ||
#define TFT_MOSI 11 | ||
#define TFT_MISO -1 | ||
#define TFT_SCLK 12 | ||
|
||
// SD card | ||
#define SD_CARD_CS 13 | ||
#define SD_CARD_MOSI 35 | ||
#define SD_CARD_SCK 36 | ||
#define SD_CARD_MISO 37 | ||
|
||
#define SX1276_NSS 1 | ||
#define SX1276_DIO2 15 | ||
#define SX1276_DIO1 16 | ||
#define SX1276_MISO 7 | ||
|
||
#define PN532_SDA 8 | ||
#define PN532_SCL 9 | ||
|
||
#define BATTERY_MONITOR 2 | ||
|
||
#define IR_RECEIVER_PIN 6 | ||
#define IR_EMITTER_PIN 14 |
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,66 @@ | ||
/* | ||
* This file is part of the Capibara zero (https://github.com/CapibaraZero/fw or | ||
* https://capibarazero.github.io/). Copyright (c) 2024 Andrea Canale. | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, version 3. | ||
* | ||
* This program is distributed in the hope that it will be useful, but | ||
* WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
// Set your display resolution here | ||
#define DISPLAY_WIDTH 170 | ||
#define DISPLAY_HEIGHT 320 | ||
|
||
// Define buttons pins | ||
#define OK_BTN_PIN 0 | ||
|
||
#define ENCODER_A_PIN 4 | ||
#define ENCODER_B_PIN 5 | ||
|
||
#define STANDBY_BTN 6 | ||
#define WAKEUP_PIN 0 | ||
|
||
// Display pins | ||
#define TFT_CS 41 | ||
#define TFT_DC 16 | ||
#define TFT_RST -1 | ||
#define TFT_MOSI 9 | ||
#define TFT_MISO 10 | ||
#define TFT_SCLK 11 | ||
#define TFT_BLK 21 | ||
|
||
// SD card | ||
#define SD_CARD_CS 13 | ||
#define SD_CARD_MOSI 9 | ||
#define SD_CARD_MISO 10 | ||
#define SD_CARD_SCK 11 | ||
|
||
// SX1276(SubGHZ) | ||
#define CC1101_MOSI 9 | ||
#define CC1101_MISO 10 | ||
#define CC1101_SCK 11 | ||
#define CC1101_CS 12 | ||
#define CC1101_IO2 38 | ||
#define CC1101_IO0 3 | ||
#define CC1101_SW1 47 | ||
#define CC1101_SW0 48 | ||
|
||
// PN532(NFC) | ||
#define NFC_BUS_SCL 18 | ||
#define NFC_BUS_SDA 8 | ||
#define NFC_RST 45 | ||
#define NFC_IRQ 17 | ||
|
||
#define BOARD_PWR_EN 15 | ||
#define BQ27220_BATTERY | ||
|
||
#define IR_RECEIVER_PIN 1 | ||
#define IR_EMITTER_PIN 2 |
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
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,7 +1,7 @@ | ||
#include "Arduino.h" | ||
|
||
// From Icons8 | ||
const uint8_t file_icon[] = { | ||
0x00, 0x00, 0x00, 0x00, 0x0f, 0xfe, 0x0f, 0xff, 0x0f, 0xfd, 0x0f, | ||
0xfc, 0x0f, 0xfc, 0x0f, 0xfc, 0x0f, 0xff, 0x0f, 0xff, 0x0f, 0xff, | ||
0x0f, 0xff, 0x0f, 0xff, 0x0f, 0xff, 0x0f, 0xff, 0x0f, 0xff}; | ||
const uint8_t file_icon[] = {0x00, 0x00, 0x00, 0x00, 0x0f, 0xfe, 0x0f, 0xff, | ||
0x0f, 0xfd, 0x0f, 0xfc, 0x0f, 0xfc, 0x0f, 0xfc, | ||
0x0f, 0xff, 0x0f, 0xff, 0x0f, 0xff, 0x0f, 0xff, | ||
0x0f, 0xff, 0x0f, 0xff, 0x0f, 0xff, 0x0f, 0xff}; |
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
Oops, something went wrong.