Giter Club home page Giter Club logo

Comments (6)

nkolban avatar nkolban commented on August 19, 2024

I'm still studying this code myself. @me-no-dev is the master of the code. I looked at the TTY class and was surprised to see that the constructor of it expects a "numeric" ... so creating an instance of it with "17" will open /dev/tty17 ... great ... but if we have a TTY called /dev/ttySC0, we can't seem to use TTY!! That seems a trifle odd.

from raspiarduino.

me-no-dev avatar me-no-dev commented on August 19, 2024

The tty lib is actually to control the console tty that you see when you plug in a monitor/tv. With it you can write to it like you are using a keyboard

from raspiarduino.

jetpax avatar jetpax commented on August 19, 2024

I see, and thanks, both for creating a cool project, and for replying.

So as tty lib exposes almost the same interface as serial, i suppose i
could just create another serial port using tty as a base, eg
with termios???

Would be good if we could generalise it to use say ttyUSB0 etc as well, so
that Arduino apps could use whatever serial ports Linux knows about...

Ill have a play

BTW I see other forks have taken your project forward, are you planning on
merging those?

On Wednesday, September 7, 2016, Me No Dev [email protected] wrote:

The tty lib is actually to control the console tty that you see when you
plug in a monitor/tv. With it you can write to it like you are using a
keyboard


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#51 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGQxBPam2gKlm1aZGU0IMQUghQUs1wCLks5qnpaXgaJpZM4J1_JW
.

from raspiarduino.

jetpax avatar jetpax commented on August 19, 2024

Thanks Neil, thats sort of what im puzzling over, it looks like it should
be possible to use termios instead of accessing the hardware directly , but
i dont know enough about it yet to be sure...

And thanks for your books, esp the ESP8266

On Tuesday, September 6, 2016, Neil Kolban [email protected] wrote:

I'm still studying this code myself. @me-no-dev
https://github.com/me-no-dev is the master of the code. I looked at the
TTY class and was surprised to see that the constructor of it expects a
"numeric" ... so creating an instance of it with "17" will open /dev/tty17
... great ... but if we have a TTY called /dev/ttySC0, we can't seem to use
TTY!! That seems a trifle odd.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#51 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGQxBH_QDHfc197Wv6a7_oV8T-dYiawdks5qnbpNgaJpZM4J1_JW
.

from raspiarduino.

me-no-dev avatar me-no-dev commented on August 19, 2024

As i am currently employed by Espressif I have little time to work on the pi :) i don't even have pi 3 yet. I accept PRs but none have been sent.

from raspiarduino.

me-no-dev avatar me-no-dev commented on August 19, 2024

I would advise you not use the tty lib but rather unload the kernel driver and find arduino lib for your i2c uart and use that to communicate. It will be all fast and good :)

from raspiarduino.

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.