mirror of
https://github.com/whowechina/iidx_pico.git
synced 2024-11-12 01:10:50 +01:00
Defined live settings.
This commit is contained in:
parent
0a150d5b1b
commit
65266f4b7e
@ -29,7 +29,7 @@ static int module_num = 0;
|
||||
#define CONFIG_PAGE_MAGIC 0x13424321
|
||||
#define CONFIG_SECTOR_OFFSET (PICO_FLASH_SIZE_BYTES - FLASH_SECTOR_SIZE)
|
||||
|
||||
typedef struct __attribute__ ((__packed__)) {
|
||||
typedef struct __attribute ((packed)) {
|
||||
uint32_t magic;
|
||||
uint8_t data[FLASH_PAGE_SIZE - 4];
|
||||
} page_t;
|
||||
|
@ -6,5 +6,37 @@
|
||||
#ifndef SETUP_H
|
||||
#define SETUP_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
typedef struct __attribute ((packed)) {
|
||||
uint8_t hue;
|
||||
uint8_t saturation;
|
||||
uint8_t value;
|
||||
} key_color_t;
|
||||
|
||||
typedef struct __attribute ((packed)) {
|
||||
key_color_t key_off[11];
|
||||
key_color_t key_on[11];
|
||||
struct {
|
||||
uint8_t led_start;
|
||||
uint8_t led_num;
|
||||
uint8_t effect;
|
||||
uint8_t param;
|
||||
uint8_t brightness;
|
||||
bool reversed;
|
||||
} tt_led;
|
||||
bool tt_sensor_reversed;
|
||||
struct {
|
||||
uint8_t vefx;
|
||||
uint8_t eq_low;
|
||||
uint8_t eq_hi;
|
||||
uint8_t filter;
|
||||
uint8_t play_vol;
|
||||
} effects;
|
||||
} iidx_cfg_t;
|
||||
|
||||
void report_moves(uint16_t key_flag, uint16_t tt_angle);
|
||||
bool is_in_setup();
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user