Skip to content

Create SevenSegHW_extra.ino #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*
Gadget Factory
Seven Segment Hardware Example

Requires a ZPUino bit file with the Seven Segment Core connected to a Wishbone slot

Wiki Page:
http://www.papilio.cc/index.php?n=Papilio.7Segment-Core-Walid

Hardware:
There is no pre-built bit file/board type in the ZAP IDE that contains a Seven Segment Core. You will have to synthesize our own for now. The Seven Segment Core VHDL can be found here:
https://github.com/GadgetFactory/Papilio-SOC/blob/master/zpu/hdl/zpuino/zpuino_sevenseg.vhd
If using LogicStart MegaWing then select the appropriate "To be determined" board type in the ZAP IDE.

ZPUino Variant:
There is no pre-built bit file/board type in the ZAP IDE that contains a Seven Segment Core. You will have to synthesize our own for now. The Seven Segment Core VHDL can be found here:
https://github.com/GadgetFactory/Papilio-SOC/blob/master/zpu/hdl/zpuino/zpuino_sevenseg.vhd

created 2013
by Walid Youssef
http://www.gadgetfactory.net

This example code is in the public domain.
*/

#include <SevenSegHW.h>

SEVENSEGHW sevenseg;

void setup () {
// set base address :
sevenseg.begin (IO_SLOT(9));
}

void loop () {

// Testing simple read/write acces to registers
for (int i = 0; i< 65535; i++)
{
// Simply write the i value
sevenseg.setExtra (i);
sevenseg.setIntValue(i,0);
sevenseg.getExtra ;
delay (2000);
}


}