demo of driving MAX2719 dot matrix displays with STM32F103 Bluepill
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#ifndef MAIN_H
|
|
|
|
#define MAIN_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <inttypes.h>
|
|
|
|
|
|
|
|
#include <stm32f10x.h>
|
|
|
|
|
|
|
|
#define MIN(a,b) ((a)>(b)?(b):(a))
|
|
|
|
#define MAX(a,b) ((a)<(b)?(b):(a))
|
|
|
|
#define STR_HELPER(x) #x
|
|
|
|
#define STR(x) STR_HELPER(x)
|
|
|
|
|
|
|
|
// screen size
|
|
|
|
#define SCREEN_W 16
|
|
|
|
#define SCREEN_H 16
|
|
|
|
|
|
|
|
#endif // MAIN_H
|