Comments (19)
I tried stopping timers when a key is pressed, and enabling them after it was
released. but still the input is currupted, I wouldnt really care much if there
is a minor glitch in video temprarily, but I want to be able to get information
from the keyboard. here is the code I tried in the PS2Keyboard library:
void ps2interrupt(void)
{
//stop interrupts
cli();
static uint8_t bitcount=0;
static uint8_t incoming=0;
static uint32_t prev_ms=0;
uint32_t now_ms;
uint8_t n, val;
val = digitalRead(PollPS2_DataPin);
now_ms = millis();
if (now_ms - prev_ms > 250) {
bitcount = 0;
incoming = 0;
}
prev_ms = now_ms;
n = bitcount - 1;
if (n <= 7) {
incoming |= (val << n);
}
bitcount++;
if (bitcount == 11) {
uint8_t i = head + 1;
if (i >= BUFFER_SIZE) i = 0;
if (i != tail) {
buffer[i] = incoming;
head = i;
}
bitcount = 0;
incoming = 0;
}
//start interrupts
sei();
}
Original comment by [email protected]
on 20 Sep 2011 at 1:51
from arduino-tvout.
Hello,
I am using both the libraries and my sketch seams to work correctly.
The only issue I found is the glitch when pressing a key.
I've also observed than pressing continuously a key, the glitching phenomenon
disappears.
I don't know if it's your case, but few days ago in one of mine sketches, the
PS2 Keyboard library didn't recognize correctly a key due to the too high
memory allocation (using a matrix)...
I hope this could be helpful...
Now I will try to solve the glitching issue...
Original comment by [email protected]
on 9 Dec 2011 at 2:16
from arduino-tvout.
I have already found a fix to the problem. It was to use pollserial to get
data from the keyboard. It works perfectly. I can send you the libraries and
sketch if you want
Original comment by [email protected]
on 11 Dec 2011 at 1:10
from arduino-tvout.
Ok! If you send me libraries and sketch I will appreciate!
Original comment by [email protected]
on 11 Dec 2011 at 5:25
from arduino-tvout.
Ok, here is the library on the attached files
alos, I thought you might be interested in the BASIC interpreter for
arduino I made
https://github.com/amigojapan/Interactive-Arduino-Basic-Interpreter
I will eventually figure out a way to do something to get enbough ram to
run both the BASIC intepreter AND all TV out at the same time to make a
retro computer, I think I may store the programs in progmem
also you might want to add as an example of TV out my video of this True
Serial Terminal I made that actually connects to a linux computer and can
control it thru a serial port. it is the latest video of my channel
http://youtube.com/amigojapan
Original comment by [email protected]
on 12 Dec 2011 at 1:56
from arduino-tvout.
[deleted comment]
from arduino-tvout.
Thank you! I am just trying your Basic Interpreter!
I'm sorry but I can't see your attachment... :(
Original comment by [email protected]
on 12 Dec 2011 at 5:39
from arduino-tvout.
Ok, later when I get time I will upload it to github and send you the link or
something
Original comment by [email protected]
on 13 Dec 2011 at 5:28
from arduino-tvout.
OK, try downloading it from here please
http://www.mediafire.com/?ru7562sifbl204q
Original comment by [email protected]
on 13 Dec 2011 at 9:16
from arduino-tvout.
Received!
I will try it later and let you know!
Thank you!
Original comment by [email protected]
on 13 Dec 2011 at 12:26
from arduino-tvout.
Everything working!
Thank you again!
Original comment by [email protected]
on 15 Dec 2011 at 12:40
from arduino-tvout.
Great!
Original comment by [email protected]
on 16 Dec 2011 at 2:27
from arduino-tvout.
Hi, I have another question. The ore Beta 1.0 version of TV out seemed to have
a pause() function which "returns full CPU power". Is there an equivalent in
the new versions?
On 2011/12/15, at 21:41, [email protected] wrote:
Original comment by [email protected]
on 30 Apr 2012 at 4:23
from arduino-tvout.
does anyone have the attachment since the op was kind enough to place it on a
crap server which no longer has the file?
Thanks
Original comment by [email protected]
on 31 Dec 2012 at 9:18
from arduino-tvout.
I have it on my home computer but I won't have access to it for a week or so
Original comment by [email protected]
on 31 Dec 2012 at 11:40
from arduino-tvout.
Thats fine if you can repost it when you get back
Thanks
Original comment by [email protected]
on 2 Jan 2013 at 6:21
from arduino-tvout.
OK, I have heard some people on the mailing list asking about the library to
use PS2keyboard together with TVout, here is a link to it
https://github.com/amigojapan/Arduino_TVout_with_ps2Keyboard/blob/master/ps2uart
Keyboard.zip?raw=true
Original comment by [email protected]
on 10 Jan 2013 at 8:24
from arduino-tvout.
Thank you very much!
Original comment by [email protected]
on 13 Jan 2013 at 12:29
from arduino-tvout.
No problem :)
Original comment by [email protected]
on 13 Jan 2013 at 4:48
from arduino-tvout.
Related Issues (20)
- TV.OUT slows the millis() function... HOT 1
- Problem with IrRemot HOT 1
- Leonardo/Micro/Esplora <32u4 Does Not Work>
- Logic error in begin(uint8_t mode, uint8_t x, uint8_t y) HOT 1
- Screen Resolution
- Getting signal but black screen HOT 5
- Arduino 8MHZ sync problems
- Hackvision, cannot get it to work with TVOut beta1
- Color ?
- Download -> TVOut Arduino Compilation error fix for Mac OS X users (possibly windows too? haven't tested)
- bug in graphic functions
- Not compling in Mega 2560 HOT 4
- Fix for bigfonts (bigger than 8 bits width)
- No display when using TVout and Keypad libraries together
- Image is barely visible HOT 1
- ATtiny 25/45/85
- Google Code Shutdown HOT 2
- Interface 4.3 inch monitor with OBD-II Adapter to Arduino HOT 1
- Code defect?
- arabic font
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 arduino-tvout.