Skip to content

Commit

Permalink
animationに対応
Browse files Browse the repository at this point in the history
esp32,M5Stack両方ともサポート
LinuxのSDLもサポート、ネタで端末描画もサポート
グラフィックライブラリを廃止
整数クラスベクトルも廃止
  • Loading branch information
elect-gombe committed Sep 2, 2018
1 parent 8e9dd25 commit 1a860f5
Show file tree
Hide file tree
Showing 36 changed files with 28,890 additions and 82,162 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
build/
build/
main/GPATH
main/GTAGS
main/GRTAGS
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
#

PROJECT_NAME := spi_master
CFLAG = -Ofast --fast-math

include $(IDF_PATH)/make/project.mk

5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## SPI master example

This code displays a simple graphics with varying pixel colors on the 320x240 LCD on an ESP-WROVER-KIT board.

If you like to adopt this example to another type of display or pinout, check [manin/spi_master_example_main.c] for comments that explain some of implementation details.
Empty file removed main/#main.h#
Empty file.
26 changes: 24 additions & 2 deletions main/3dconfig.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,32 @@ This software is released under the MIT License.
#ifndef _3DCONFIG
#define _3DCONFIG

#define DRAW_NLINES 40

const static int window_width = 320;
const static int window_height = 240;

//#define ENDIAN_LITTLE

#define ESP32
#ifdef ESP32
#define OMIT_ZBUFFER_CONFLICT
//comment out if U use M5Stack.
#define ILI9341
#define PROCESSNUM 2
#define DRAW_NLINES (20)
#define MAXPROC_POLYNUM (920)
#else
// #define OUTPUTTERMINAL
#define USE_SDL
#define PROCESSNUM 1
#define DRAW_NLINES (window_height)
#define MAXPROC_POLYNUM (2000)
#endif



// DO NOT CHANGE HERE
#ifdef OUTPUTTERMINAL
#undef ENDIAN_LITTLE
#endif

#endif
Loading

0 comments on commit 1a860f5

Please sign in to comment.