Comments (5)
Hello,
I had the same problem with mixed-up commands in program mode.
Therefore I inserted an additional sorting at line 2786 which reads:
prgstepins(tmp);
It should be:
prgstepins(cmdsort[tmp]);
Hope it works. Sometimes during switching on, my calc also fails to boot correctly. I found that switching it on quickly helps (maybe some kind of brown out otherwise).
Mario.
from iv.
Wow - great job and nice done. Have fun with it.
Yes the maximum number is 1E36 (or so). An overflow will be checked when calculations exceed.
Unfortunately there is no check during keying in (more than 36) numbers.
from iv.
@emefff thank you, your fix for program input works!
Meanwhile I think I managed to fix the problem with display initialisation. As per circuit diagram in the sketch, DC and RESET are connected to PORTF. But the sketch code uses PORTD in pin initialisation function bootpins().
My bootpins() now looks like this. CS is also not used in this schematic so I removed it.
static void bootpins(void) { // Declare and boot port pins
DDRB |= _BV(SPI_MOSI_BIT) | _BV(SPI_SCK_BIT) | _BV(SPI_SS_BIT);
PORTF &= ~(_BV(RST_BIT));
DDRF |= _BV(RST_BIT) | _BV(DC_BIT);
}
from iv.
Hi!
Thanks for rebuilding IV and I'm glad that your issues had been solved.
Regarding your boot/initialization issue - I had to give my display some time when initiate.
See line 2648: delaylong(4);
To minimize the boot time I came very close to my display limits with the value 4.
Maybe you might want to give your display more time to settle?
Regards
deetee
from iv.
@zooxo Delay time was my first guess too but it's not that. Pins A1 and A2 on Arduino Pro Micro are PORTF. The defines for DC_PORT and RST_PORT correctly point to PORTF. However bootpins() sets direction for PORTD, which is incorrect.
There's also initialisation of CS pin, which is permanently grounded display-side in your circuit, if I understood it correctly. So it's also superfluous and can be removed.
I'm discovering your calculator's functions. It's a very interesting design. I don't think I'll use advanced features a lot, but it's amazing to poke around.
When I input more numbers than it can take, the display takes strange forms::
It recovers on clear though.
from iv.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iv.