Makeblock-library-for-Arduino  V3.2.4
It's a library for arduino application developers
Classes | Variables
Me7SegmentDisplay.h File Reference

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.


class  Me7SegmentDisplay
 Class for numeric display module. More...


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

Detailed Description

Header file for Me7SegmentDisplay.cpp.

This software is Copyright (C), 2012-2016, 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
Driver for Me 7-Segment Serial Display module.
Method List:
  1. void Me7SegmentDisplay::init(void);
  2. void Me7SegmentDisplay::set(uint8_t brightness, uint8_t SetData, uint8_t SetAddr);
  3. void Me7SegmentDisplay::reset(uint8_t port);
  4. void Me7SegmentDisplay::setpin(uint8_t dataPin, uint8_t clkPin);
  5. void Me7SegmentDisplay::write(uint8_t SegData[]);
  6. void Me7SegmentDisplay::write(uint8_t BitAddr, uint8_t SegData);
  7. void Me7SegmentDisplay::display(uint16_t value);
  8. void Me7SegmentDisplay::display(int16_t value);
  9. void Me7SegmentDisplay::display(float value);
  10. void Me7SegmentDisplay::display(long value);
  11. int16_t Me7SegmentDisplay::checkNum(float v,int16_t b);
  12. void Me7SegmentDisplay::display(double value, uint8_t digits);
  13. void Me7SegmentDisplay::display(uint8_t DispData[]);
  14. void Me7SegmentDisplay::display(uint8_t BitAddr, uint8_t DispData);
  15. void Me7SegmentDisplay::display(uint8_t BitAddr, uint8_t DispData, uint8_t point_on);
  16. void Me7SegmentDisplay::clearDisplay(void);
  17. void Me7SegmentDisplay::setBrightness(uint8_t brightness);
  18. void Me7SegmentDisplay::coding(uint8_t DispData[]);
  19. uint8_t Me7SegmentDisplay::coding(uint8_t DispData);
<Author>         <Time>        <Version>        <Descr>
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.

Variable Documentation

const uint8_t ADDR_AUTO = 0x40
const uint8_t ADDR_FIXED = 0x44
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
const uint8_t POINT_OFF = 0
const uint8_t POINT_ON = 1
const uint8_t SEGDIS_OFF = 0x80
const uint8_t SEGDIS_ON = 0x88
const uint8_t STARTADDR = 0xc0