Code Monkey home page Code Monkey logo

Comments (19)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
[deleted comment]

from arduino-tvout.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
Everything working!

Thank you again!

Original comment by [email protected] on 15 Dec 2011 at 12:40

from arduino-tvout.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
Great!

Original comment by [email protected] on 16 Dec 2011 at 2:27

from arduino-tvout.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
Thank you very much!

Original comment by [email protected] on 13 Jan 2013 at 12:29

from arduino-tvout.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
No problem :)

Original comment by [email protected] on 13 Jan 2013 at 4:48

from arduino-tvout.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.