8-bit IF UCGLIB

erhardd
Posts: 17
Joined: Mon Dec 05, 2016 9:16 am

8-bit IF UCGLIB

Postby erhardd » Tue Dec 13, 2016 10:56 am

My first step to Output an image on the "ITEAD STUDIO.2.8 ITDB02 Shield(Arduino)" for further implement
the https://github.com/krzychb/esp32-cam-demo;
It's the Ucglib running on ESP32 in the Arduino-IDE.Image

Unzip Ucglib.zip in libraries (for Win7/64bit).
Open Example in libraries\Ucglib\examples\Box3D\Box3Desp32.ino.. ;)
Look at pinlist :(pins _arduino.h)

Code: Select all

#ifndef Pins_Arduino_h
#define Pins_Arduino_h

#define EXTERNAL_NUM_INTERRUPTS 16
#define NUM_DIGITAL_PINS        40
#define NUM_ANALOG_INPUTS       18

#define analogInputToDigitalPin(p)
#define digitalPinToInterrupt(p)    (((p)<40)?(p):-1)
#define digitalPinHasPWM(p)         (p < 34)

static const uint8_t B_SDA = 21;  //  gpio_num_t 
static const uint8_t B_SCL = 22;

static const uint8_t SS    = 2;
static const uint8_t MOSI  = 23;
static const uint8_t MISO  = 19;
static const uint8_t SCK   = 18;

static const uint8_t D0    = 13;
static const uint8_t D1    = 12;
static const uint8_t D2    = 14;
static const uint8_t D3    = 27;
static const uint8_t D4    = 26;
static const uint8_t D5    = 25;
static const uint8_t D6    = 16;
static const uint8_t D7    = 4;

// 8Bit Com: D0..D7: 0,1,2,3,4,5,6,7 en=wr=18, cs=17, rs=19, rd=U8G_PIN_NONE, reset = 16  18,17,19,-,16  ---> 15,5,17,16
/*
static const uint8_t WR    = 18;
static const uint8_t CS    = 17;
static const uint8_t RS    = 19;
static const uint8_t RESET   = -1;
*/
#endif /* Pins_Arduino_h */
Attachments
Ucglib.zip
(2.99 MiB) Downloaded 762 times

erhardd
Posts: 17
Joined: Mon Dec 05, 2016 9:16 am

Re: 8-bit IF UCGLIB

Postby erhardd » Sat Dec 17, 2016 10:11 am

The second step is a Slideshow of Pictures saved on SD-Card.
Image
Since the Touch-Overlay of my Display is broken, I've to wait 6..8 weeks for a new one from
ITEAD Studio (UNO Mega 2.8 TFT LCD Touch Display Shield V1 With SD Card Socket For Arduino Board Mudle).
That's why i've put the Code for the slideshow befor the Button-request in the *.ino.
In real it is program-button3..
Touch-SD-8bit-esp32.zip
(2.71 MiB) Downloaded 768 times
Make sure to use SD-Lib from Arduino_IDE
(for me:C:\Program Files (x86)\Arduino\libraries\SD)
edit this line in Sd2PinMap.h:
(20) #if defined(__arm__) || defined(__XTENSA__) || defined(ESP32) // Arduino Due Board follows

erhardd
Posts: 17
Joined: Mon Dec 05, 2016 9:16 am

Re: 8-bit IF UCGLIB

Postby erhardd » Mon Jan 02, 2017 11:31 am

Touch-SD-esp32_cam_short.zip
(895.69 KiB) Downloaded 1156 times
I've found an old TFT-Display in my basket with switches on the backside for 8-bit mode.

Image

Attached the code(removed the other programs) for displaying the preview of an OV7725 at prg.6;

This doesn't work and i need help!
The freeRTOS-Task destroy the pin-map for output to the LCD.
Here the Output of the Comp. from Arduino-IDE with the commented-out free-RTOS-Task:

Image

Who is online

Users browsing this forum: Bing [Bot] and 35 guests