Which pin is reset?
it's not a 328p with extra pins as I thought.
tried this remapping for 2560 from 328p demo but reset pin??
#chipmega2560, 16
#optionexplicit
#include<glcd.h>
#include<mega2560.h>
#defineGLCD_TYPEGLCD_TYPE_ILI9341'Pin mappings for SPI - this GLCD driver supports Hardware SPI and Software SPI
#defineGLCD_DCportb.0;DIGITAL_8 ' Data command line
#defineGLCD_CSportb.2;DIGITAL_10 ' Chip select line; #define GLCD_RESET portb.1 ;DIGITAL_9 ' Reset line
#defineGLCD_DIportb.3;DIGITAL_12 ' Data in | MISO - Not used therefore not really required
#defineGLCD_DOportb.2;DIGITAL_11 ' Data out | MOSI
#defineGLCD_SCKportb.1;DIGITAL_13 ' Clock Line
#defineILI9341_HardwareSPI' remove/comment out if you want to use software SPI.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
some gcb projects work ok like the nano328p running at 3,3v and the display
5v driven from 3,3v and dropout doesn't matter
but the 2560 is a pain even at 5v logic.
I thought if ports the same and using specific ports for mosi,sck.miso would be ok.
I used to just tie reset high?? and not use that line.
Oh the joys of gcb coding
ps joking.it's not pnp like what I imagine arduino is but never copied a sketch...
or used it...about time I gave it a go.
please help.
I got these errors on my first compile using arduino 2560 board. Why?
First line of the error report is the clue.....
What error report? Looks like the errors are in the ili9341 include.
I'll try real ports instead of digital_x.
this was my first compile with 2560.
Look again. Canot find something... what cannot not find? What is the chip ?
Chip is marked as atmega 2560.
my error sorry. header should have been.
glcd not working yet but flashes ok.
the pins in include atmega2560 don't match the pinout diagram . like mosi,miso
Which pin is reset?
it's not a 328p with extra pins as I thought.
tried this remapping for 2560 from 328p demo but reset pin??
some gcb projects work ok like the nano328p running at 3,3v and the display
5v driven from 3,3v and dropout doesn't matter
but the 2560 is a pain even at 5v logic.
I thought if ports the same and using specific ports for mosi,sck.miso would be ok.
I used to just tie reset high?? and not use that line.
Oh the joys of gcb coding
ps joking.it's not pnp like what I imagine arduino is but never copied a sketch...
or used it...about time I gave it a go.
Last edit: stan cartwright 2020-10-04
When i think using a nano 328p at 3.3v it lowers clock and never considered the impact on wait.
any considerations about mega2560 I should be aware of please before I put some effort into it? cheers guys
which pin is reset..bye the way?
Last edit: stan cartwright 2020-10-05