Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/elect-gombe/esp32_mmd
Browse files Browse the repository at this point in the history
  • Loading branch information
elect-gombe committed Jun 8, 2017
2 parents 6116893 + 1c00731 commit 7d42d71
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
# MMD with ESP32
## MMDモデルの表示
## MMDモデルの表示 MMD model display test

<img src="http://i.imgur.com/qks27xH.jpg" alt="サンプル" width="200">

Mはげさんのソースコードから拝借して表示しました。
## 回路
ST7735S(160x128)を使います。Aitendoとかにあったのですが今は知りません。

# How to

## Pin assign
ST7735S(160x128)を使います。
for ST7735S (160x128)

```c
#define PIN_NUM_MISO 25
#define PIN_NUM_MOSI 23
Expand All @@ -15,9 +20,13 @@ ST7735S(160x128)を使います。Aitendoとかにあったのですが今は知
#define PIN_NUM_DC 21
#define PIN_NUM_RST 18
```
このとおりです。DCはA0とかRSとか別名多数ですね。全てきちんと接続してくださいよ。
## Performance
160x128で22fpsです。STM32F4に大きく遅れを取ってます。
最適化レベルは-O3で240MHz駆動です。
@240MHz 160x128 about 30000 triangles/sec. not bad, not good.
## memo
このシステムはラインスキャン法を使っています。高速かつ少ないメモリで処理可能で、一ライン分のみのzバッファを使っているため解像度を上げることも可能です。
ただしパフォーマンスは低下します。
http://gombe.azurewebsites.net/2017/05/14/%e3%83%9e%e3%82%a4%e3%82%b3%e3%83%b3%e3%81%a73d%e8%a1%a8%e7%a4%ba%e5%9b%b3%e8%a7%a3/

0 comments on commit 7d42d71

Please sign in to comment.