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.
IO3714.cpp
00001 #include "IO3714.h" 00002 00003 IO3714::IO3714(PinName mosi, PinName sclk, PinName clr_n, PinName stb_n) 00004 : _spi(mosi,NC,sclk), _clr_n(clr_n), _stb_n(stb_n) { 00005 _clr_n=0; 00006 _stb_n=0; 00007 _spi.format(12,0); 00008 _spi.frequency(48000000); 00009 _clr_n=1; 00010 } 00011 00012 void IO3714::write(unsigned int data) { 00013 00014 00015 _spi.write((data>>12) & 0xFFF ); 00016 _spi.write(data & 0xFFF ); 00017 _stb_n=0; 00018 _stb_n=1; 00019 00020 }
Generated on Sun Aug 14 2022 23:45:52 by
1.7.2