Giter Site home page Giter Site logo

ps2communication's Introduction

PS2Communication.h - PS2Communication library Copyright (c) 2009 Free Software Foundation. All right reserved. Rewritten for interrupt and ported for Spark Core and Particle.io devices like Photon and Electron by Andreas Rothenwänder (aka ScruffR) based on some non-interrupt library from pjrc.com (Paul Stoffregen)

This library provides the basic PS/2 communication framework for sending single byte "commands" and receiving data/responses of a PS/2 device. One example for communication between Spark Core and a PS/2 mouse is provided along with the library.

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

ps2communication's People

Contributors

scruffr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ps2communication's Issues

Version without particle

Hi,
I have modified the example code but have not been able to get it working without Particle connector.
Do you have version that just connects with a mouse and passes over the data? (to Serial Print for example)

'struct GPIO_TypeDef' has no member named 'BRR'

Veryfing code using this library in Particle Build fails with this error:

PS2Communication/PS2Communication.h:39:76: error: 'struct GPIO_TypeDef' has no member named 'BRR'
 #define pinLO(_pin)                        (PIN_MAP[_pin].gpio_peripheral->BRR = PIN_MAP[_pin].gpio_pin)
                                                                            ^

This error crops up when trying to compile the PS2Communication library on Photon, using peekay's PIN_MAP inline #define fixes. It also doesn't compile without them.

How to compile for arduino nano?

Are there any changes that need to be done to the code to get it compiling for Arduino Nano, I see that there is a application.cpp and PS2Mouse.ino in the examples folder?

For the Arduino I think I have to use the .ino file but I haven't had much success in compiling for the Arduino Nano.

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.