-
Notifications
You must be signed in to change notification settings - Fork 2
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 #13 from vladkorotnev/develop
v4.1
- Loading branch information
Showing
135 changed files
with
11,270 additions
and
2,182 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Prepare PIO environment | ||
|
||
on: [workflow_call] | ||
|
||
jobs: | ||
prepare_pio: | ||
name: Set up PIO environment | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.cache/pip | ||
~/.platformio/.cache | ||
key: ${{ runner.os }}-pio | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
- name: Install PlatformIO Core | ||
run: pip install --upgrade platformio |
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,35 @@ | ||
name: Build production version | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
build-everything: | ||
runs-on: ubuntu-latest | ||
name: Build All Binaries | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Prepare environment | ||
uses: ./.github/actions/prepare_pio | ||
- name: Build all targets | ||
run: pio run | ||
continue-on-error: true # TODO make this more graceful | ||
- name: Upload firmware images | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: filesystem | ||
path: ./.pio/build/*/firmware.bin | ||
if-no-files-found: error | ||
- name: Delete WIP tunes | ||
run: rm ./music/wip_*.pomf | ||
- name: Create LittleFS image | ||
run: pio run --target buildfs --environment music-pomf | ||
- name: Upload filesystem image | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: ./.pio/build/music-pomf/littlefs.bin | ||
if-no-files-found: error |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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
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,55 @@ | ||
#pragma once | ||
|
||
#include <hal/gpio_hal.h> | ||
#include <input/keypad.h> | ||
|
||
#define HAS_OUTPUT_GU7000 | ||
#define HAS_TEMP_SENSOR | ||
#define HAS_KEYPAD | ||
#define HAS_SERIAL_MIDI | ||
#define HAS_VARYING_BRIGHTNESS | ||
#define HAS_LIGHT_SENSOR | ||
|
||
// ↓ Looks like shite on the VFD display | ||
#define COMPOSABLE_NO_EVENODD | ||
|
||
// Plasma Information System OS (not DOS, there's no disk in it!) | ||
#define PRODUCT_NAME "PIS-OS" | ||
#define PRODUCT_VERSION "4" | ||
|
||
// ---- Connection to beeper ---- | ||
const gpio_num_t HWCONF_BEEPER_GPIO = GPIO_NUM_33; | ||
const uint8_t HWCONF_BEEPER_PWM_CHANNEL = 0; | ||
|
||
// ---- Connection to temperature sensor ---- | ||
const gpio_num_t HWCONF_I2C_SDA_GPIO = GPIO_NUM_26; | ||
const gpio_num_t HWCONF_I2C_SCL_GPIO = GPIO_NUM_25; | ||
|
||
// ---- Connection to light sensors ---- | ||
const gpio_num_t HWCONF_LIGHTSENSE_GPIO = GPIO_NUM_36; | ||
|
||
// ---- Connection to display ---- | ||
const gpio_num_t HWCONF_GU7000_DATABUS_GPIOS[] = { | ||
GPIO_NUM_5, | ||
GPIO_NUM_0, | ||
GPIO_NUM_23, | ||
GPIO_NUM_2, | ||
GPIO_NUM_22, | ||
GPIO_NUM_15, | ||
GPIO_NUM_4, | ||
GPIO_NUM_21 | ||
}; | ||
const gpio_num_t HWCONF_GU7000_WR_GPIO = GPIO_NUM_18; | ||
const gpio_num_t HWCONF_GU7000_BUSY_GPIO = GPIO_NUM_19; | ||
|
||
#define HWCONF_DISPLAY_WIDTH_PX 112 | ||
#define HWCONF_DISPLAY_HEIGHT_PX 16 | ||
|
||
// ---- Connection of buttons ---- | ||
const keypad_definition_t HWCONF_KEYPAD = { | ||
{GPIO_NUM_14, KEY_RIGHT}, | ||
{GPIO_NUM_32, KEY_LEFT}, | ||
{GPIO_NUM_34, KEY_UP}, | ||
{GPIO_NUM_27, KEY_DOWN}, | ||
{GPIO_NUM_35, KEY_HEADPAT}, //<- finally a clock to have hardware headpat! | ||
}; |
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,57 @@ | ||
#pragma once | ||
|
||
#include <hal/gpio_hal.h> | ||
#include <input/keypad.h> | ||
|
||
#define HAS_OUTPUT_GU7000 | ||
// #define HAS_TEMP_SENSOR | ||
#define HAS_MOTION_SENSOR | ||
#define HAS_KEYPAD | ||
#define HAS_SERIAL_MIDI | ||
#define HAS_VARYING_BRIGHTNESS | ||
#define HAS_LIGHT_SENSOR | ||
|
||
// ↓ Looks like shite on the VFD display | ||
#define COMPOSABLE_NO_EVENODD | ||
|
||
// Plasma Information System OS (not DOS, there's no disk in it!) | ||
#define PRODUCT_NAME "wPIS-OS" | ||
#define PRODUCT_VERSION "4" | ||
|
||
// ---- Connection to beeper ---- | ||
const gpio_num_t HWCONF_BEEPER_GPIO = GPIO_NUM_33; | ||
const uint8_t HWCONF_BEEPER_PWM_CHANNEL = 0; | ||
|
||
// ---- Connection to temperature sensor ---- | ||
const gpio_num_t HWCONF_I2C_SDA_GPIO = GPIO_NUM_26; | ||
const gpio_num_t HWCONF_I2C_SCL_GPIO = GPIO_NUM_25; | ||
|
||
// ---- Connection to display ---- | ||
const gpio_num_t HWCONF_GU7000_DATABUS_GPIOS[] = { | ||
GPIO_NUM_5, | ||
GPIO_NUM_0, | ||
GPIO_NUM_23, | ||
GPIO_NUM_2, | ||
GPIO_NUM_22, | ||
GPIO_NUM_15, | ||
GPIO_NUM_4, | ||
GPIO_NUM_21 | ||
}; | ||
const gpio_num_t HWCONF_GU7000_WR_GPIO = GPIO_NUM_18; | ||
const gpio_num_t HWCONF_GU7000_BUSY_GPIO = GPIO_NUM_19; | ||
|
||
// ---- Connection to light sensors ---- | ||
const gpio_num_t HWCONF_MOTION_GPIO = GPIO_NUM_39; | ||
const gpio_num_t HWCONF_LIGHTSENSE_GPIO = GPIO_NUM_36; | ||
|
||
#define HWCONF_DISPLAY_WIDTH_PX 140 | ||
#define HWCONF_DISPLAY_HEIGHT_PX 16 | ||
|
||
// ---- Connection of buttons ---- | ||
const keypad_definition_t HWCONF_KEYPAD = { | ||
{GPIO_NUM_14, KEY_RIGHT}, | ||
{GPIO_NUM_32, KEY_LEFT}, | ||
{GPIO_NUM_34, KEY_UP}, | ||
{GPIO_NUM_27, KEY_DOWN}, | ||
{GPIO_NUM_35, KEY_HEADPAT}, //<- finally a clock to have hardware headpat! | ||
}; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.