Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: 1620_App_Board_Shift_Register 1620_App_Board_UART_getc 1620_Project_Template 1620_Project_Template ... more
ShiftReg.h
00001 #ifndef SHIFTREG_H 00002 #define SHIFTREG_H 00003 00004 #include <mbed.h> 00005 00006 /** A simple serial driver for a shift register that uses only three digital out pins. 00007 * Based on a fork of Ollie8/ShiftOut 00008 */ 00009 class ShiftReg { 00010 00011 public : 00012 00013 ShiftReg(); 00014 ~ShiftReg(); 00015 void write(int data); 00016 00017 private : 00018 DigitalOut *clkout; 00019 DigitalOut *dataout; 00020 DigitalOut *latchout; 00021 }; 00022 00023 #endif 00024 00025 // test!!
Generated on Wed Jul 13 2022 20:30:04 by
