mirror of
https://github.com/jhbruhn/eurorack.git
synced 2025-03-15 02:55:49 +00:00
Add U8G2 to midi2cv. Start port to stm32f373
This commit is contained in:
parent
4b4a80d813
commit
1394bcf7f3
8 changed files with 12 additions and 14 deletions
|
@ -1,4 +1,4 @@
|
|||
#include <stm32f10x_conf.h>
|
||||
#include <stm32f37x_conf.h>
|
||||
|
||||
#include "stmlib/system/bootloader_utils.h"
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "display.h"
|
||||
#include "gpio.h"
|
||||
#include <stm32f10x_conf.h>
|
||||
|
||||
#include <stm32f37x_conf.h>
|
||||
#include <u8g2.h>
|
||||
// SH1106 command definitions
|
||||
#define SH1106_CMD_SETMUX (uint8_t)0xA8 // Set multiplex ratio (N, number of lines active on display)
|
||||
#define SH1106_CMD_SETOFFS (uint8_t)0xD3 // Set display offset
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef MIDI2CV_DRIVERS_DISPLAY_H
|
||||
#define MIDI2CV_DRIVERS_DISPLAY_H
|
||||
|
||||
#include <stm32f10x_conf.h>
|
||||
#include <stm32f37x_conf.h>
|
||||
#include "stmlib/stmlib.h"
|
||||
|
||||
#define DISPLAY_WIDTH 128
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include "gpio.h"
|
||||
|
||||
#include <stm32f10x_conf.h>
|
||||
#include <stm32f37x_conf.h>
|
||||
|
||||
|
||||
void GPIO::Init() {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
|
||||
#include "stmlib/stmlib.h"
|
||||
#include <stm32f10x_conf.h>
|
||||
#include <stm32f37x_conf.h>
|
||||
|
||||
#define PORT_RST_OLED GPIOB
|
||||
#define PIN_RST_OLED GPIO_Pin_0
|
||||
|
|
|
@ -27,12 +27,10 @@
|
|||
F_CRYSTAL = 8000000L
|
||||
F_CPU = 72000000L
|
||||
SYSCLOCK = SYSCLK_FREQ_72MHz
|
||||
FAMILY = f10x
|
||||
DENSITY = md
|
||||
MEMORY_MODE = flash
|
||||
FAMILY = f37x
|
||||
# USB = enabled
|
||||
|
||||
APPLICATION_SMALL = TRUE
|
||||
U8G2 = enabled
|
||||
APPLICATION_LARGE = TRUE
|
||||
BOOTLOADER = midi2cv_bootloader
|
||||
|
||||
# Preferred upload command
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include <stm32f10x_conf.h>
|
||||
#include <stm32f37x_conf.h>
|
||||
|
||||
#include "drivers/display.h"
|
||||
#include "drivers/gpio.h"
|
||||
|
|
2
stmlib
2
stmlib
|
@ -1 +1 @@
|
|||
Subproject commit 448babb082dfe7b0a1ffbf0b349eefde64691b49
|
||||
Subproject commit 5a5264d54062915a60a4ed83e67c329e187e8e0c
|
Loading…
Reference in a new issue