Close

STM32F407ZGT6 now running on Arduino

A project log for MicroOLED library ports

Sparkfun's MicroOLED library ported to 2 platforms

jacques-pelletierJacques Pelletier 09/15/2021 at 04:560 Comments

Got the STM32F407ZGT6 running on Arduino. All I did is select the correct board and pins. See below:

/*
 * Board: Generic STM32F4 series
 * Board part number: VCCGND F407ZGT6 Mini
 * 
 * OLED - STM32F4 connexions
 * STM     OLED 0.66" Sparkfun 64x48 pixels #LCD-13003
 * GND    1 GND
 * 3.3V   2 VDD
 * PA7    3 D1/MOSI
 * PA5    4 D0/SCK 
 * --     5 D2
 * PB0    6 D/C
 * PB1    7 nRESET
 * PA4    8 nCS
*/

//////////////////////////
// MicroOLED Definition //
//////////////////////////
#define PIN_RESET PB1
#define PIN_DC    PB0
#define PIN_CS    PA4
#define DC_JUMPER 0 // Set to either 0 (default) or 1 based on jumper, matching the value of the DC Jumper
// Also connect pin PA5 to SCK and pin PA7 to MOSI

The rest of the code is the same as the Micro OLED example. 

Discussions