Header file for Me7SegmentDisplay.cpp.
More...
#include <stdint.h>
#include <stdbool.h>
#include <Arduino.h>
#include "MeConfig.h"
#include "MePort.h"
Go to the source code of this file.
|
|
const uint8_t | ADDR_AUTO = 0x40 |
| |
|
const uint8_t | ADDR_FIXED = 0x44 |
| |
|
const uint8_t | STARTADDR = 0xc0 |
| |
|
const uint8_t | SEGDIS_ON = 0x88 |
| |
|
const uint8_t | SEGDIS_OFF = 0x80 |
| |
|
const uint8_t | POINT_ON = 1 |
| |
|
const uint8_t | POINT_OFF = 0 |
| |
|
const uint8_t | BRIGHTNESS_0 = 0 |
| |
|
const uint8_t | BRIGHTNESS_1 = 1 |
| |
|
const uint8_t | BRIGHTNESS_2 = 2 |
| |
|
const uint8_t | BRIGHTNESS_3 = 3 |
| |
|
const uint8_t | BRIGHTNESS_4 = 4 |
| |
|
const uint8_t | BRIGHTNESS_5 = 5 |
| |
|
const uint8_t | BRIGHTNESS_6 = 6 |
| |
|
const uint8_t | BRIGHTNESS_7 = 7 |
| |
Header file for Me7SegmentDisplay.cpp.
- Author
- Frankie.Chu, MakeBlock
- Version
- V1.0.5
- Date
- 2016/07/27
- Copyright
- This software is Copyright (C), 2012-2018, MakeBlock. Use is subject to license
conditions. The main licensing options available are GPL V2 or Commercial:
- Open Source Licensing GPL V2
- This is the appropriate option if you want to share the source code of your
application with everyone you distribute it to, and you also want to give them
the right to share who uses it. If you wish to use this software under Open
Source Licensing, you must contribute all your source code to the open source
community in accordance with the GPL Version 2 when your application is
distributed. See http://www.gnu.org/copyleft/gpl.html
- Description
- Driver for Me 7 Segment Serial Display module.
- Method List:
- void Me7SegmentDisplay::init(void);
- void Me7SegmentDisplay::set(uint8_t brightness, uint8_t SetData, uint8_t SetAddr);
- void Me7SegmentDisplay::reset(uint8_t port);
- void Me7SegmentDisplay::setpin(uint8_t dataPin, uint8_t clkPin);
- void Me7SegmentDisplay::write(uint8_t SegData[]);
- void Me7SegmentDisplay::write(uint8_t BitAddr, uint8_t SegData);
- void Me7SegmentDisplay::display(uint16_t value);
- void Me7SegmentDisplay::display(int16_t value);
- void Me7SegmentDisplay::display(float value);
- void Me7SegmentDisplay::display(long value);
- int16_t Me7SegmentDisplay::checkNum(float v,int16_t b);
- void Me7SegmentDisplay::display(double value, uint8_t digits);
- void Me7SegmentDisplay::display(uint8_t DispData[]);
- void Me7SegmentDisplay::display(uint8_t BitAddr, uint8_t DispData);
- void Me7SegmentDisplay::display(uint8_t BitAddr, uint8_t DispData, uint8_t point_on);
- void Me7SegmentDisplay::clearDisplay(void);
- void Me7SegmentDisplay::setBrightness(uint8_t brightness);
- void Me7SegmentDisplay::coding(uint8_t DispData[]);
- uint8_t Me7SegmentDisplay::coding(uint8_t DispData);
- History:
`<Author>` `<Time>` `<Version>` `<Descr>`
makeblock 2013/08/08 0.0.1 According to hardware differences, initial revision
Mark Yan 2015/07/24 1.0.0 Rebuild the old lib.
Rafael Lee 2015/09/02 1.0.1 Added some comments and macros.
Mark Yan 2015/10/29 1.0.2 fix issue when display negative data.
Mark Yan 2015/11/09 1.0.3 fix some comments error.
Mark Yan 2015/11/12 1.0.4 fix driver API.
Mark Yan 2016/07/27 1.0.5 add display to support long type.