Skip to content

Commit

Permalink
Sat Jan 14 15:09:51 CST 2017
Browse files Browse the repository at this point in the history
  • Loading branch information
kolban committed Jan 14, 2017
1 parent 77f5ae9 commit 27a4422
Show file tree
Hide file tree
Showing 111 changed files with 28,004 additions and 415 deletions.
6 changes: 5 additions & 1 deletion filesystems/espfs/components/espfs/espfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ static void *espFlashPtr = NULL;
EspFsInitResult espFsInit(void *flashAddress, size_t size) {

spi_flash_init();
esp_err_t rc = spi_flash_mmap((uint32_t) flashAddress, 64*1024*2, SPI_FLASH_MMAP_DATA, (const void **)&espFlashPtr, &handle);
if (size % (64*1024) != 0) {
ESP_LOGE(tag, "Size is not divisible by 64K. Supplied was %d", size);
return ESPFS_INIT_RESULT_NO_IMAGE;
}
esp_err_t rc = spi_flash_mmap((uint32_t) flashAddress, size, SPI_FLASH_MMAP_DATA, (const void **)&espFlashPtr, &handle);
if (rc != ESP_OK) {
ESP_LOGD(tag, "rc from spi_flash_mmap: %d", rc);
}
Expand Down
81 changes: 81 additions & 0 deletions hardware/displays/Adafruit-GFX-Library/API.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
* drawBitmap
```
drawBitmap(x, y, bitmap, w, h, color)
```

* drawChar
Characters are 5x8
```
drawChar(x, y, c, color, bg, size)
```

* drawCircle
```
drawCircle(x, y, r, color)
```

* drawLine
```
drawLine(x1, y1, x2, y2, color)
```

* drawPixel
```
drawPixel(x,y,color)
```

* drawRect
```
drawRect(x, y, w, h, color)
```

* drawRoundRect
```
drawRoundRect(x, y, w, h, r, color)
```

* fillCircle
```
fillCircle(x, y, r, color)
```

* fillRect
```
fillRect(x, y, w, h, color)
```

* fillRoundRect
```
fillRoundRect(x, y, w, h, r, color)
```

* fillScreen
```
fillScreen(color)
```

* setCursor
```
setCursor(x, y)
```

* setRotation
```
setRotation(rotation)
```

* setTextColor
```
setTextColor(color)
setTextColor(color, backgroundColor)
```

* setTextSize
```
setTextSize(size)
```

* setTextWrap
```
setTextWrap(w)
```
Loading

0 comments on commit 27a4422

Please sign in to comment.