Browse Source

add a comma to Scanner_IOE constructor

tags/v0.6.3
wolfv6 7 years ago
parent
commit
8855db3444
3 changed files with 10 additions and 5 deletions
  1. 5
    0
      doc/CHANGELOG.md
  2. 1
    1
      library.properties
  3. 4
    4
      src/Scanner_IOE.h

+ 5
- 0
doc/CHANGELOG.md View File

keybrd version 0.x.x is for initial development. keybrd version 0.x.x is for initial development.
keybrd version 1.0.0 will be released when the public API is stable. keybrd version 1.0.0 will be released when the public API is stable.
0.6.3 (2016-10-06)
------------------
* Enhancements
* add comma to Scanner_IOE constructor
0.6.1 (2016-10-02) 0.6.1 (2016-10-02)
------------------ ------------------
* Enhancements * Enhancements

+ 1
- 1
library.properties View File

name=keybrd name=keybrd
version=0.6.1
version=0.6.3
author=Wolfram Volpi author=Wolfram Volpi
maintainer=Wolfram Volpi maintainer=Wolfram Volpi
sentence=A library for creating custom-keyboard firmware. sentence=A library for creating custom-keyboard firmware.

+ 4
- 4
src/Scanner_IOE.h View File

#ifndef SCANNER_PORT_H
#define SCANNER_PORT_H
#ifndef SCANNER_IOE_H
#define SCANNER_IOE_H


#include <Arduino.h> #include <Arduino.h>
#include <inttypes.h> #include <inttypes.h>
class Scanner_IOE : public ScannerInterface class Scanner_IOE : public ScannerInterface
{ {
private: private:
const bool activeState; //logic level of strobe on, HIGH or LOW
const bool activeState; //logic level of strobe on, HIGH or LOW
PortInterface& refPortWrite; //the IC port containing the strobePin PortInterface& refPortWrite; //the IC port containing the strobePin
PortInterface& refPortRead; //the IC's read port PortInterface& refPortRead; //the IC's read port
public: public:
Scanner_IOE(const bool activeState, PortInterface &refPortWrite, PortInterface& refPortRead) Scanner_IOE(const bool activeState, PortInterface &refPortWrite, PortInterface& refPortRead)
: activeState(activeState) refPortWrite(refPortWrite), refPortRead(refPortRead) {}
: activeState(activeState), refPortWrite(refPortWrite), refPortRead(refPortRead) {}
void init(const uint8_t strobePin); void init(const uint8_t strobePin);
void begin(); void begin();
read_pins_t scan(const uint8_t strobePin); read_pins_t scan(const uint8_t strobePin);