After struggling with setting up a Vacuum Florescent Display via I2C for a while I ended up getting about as low level as possible with wires and LEDs to solve the problem. Along the way I needed the most foolproof GPIO level control I could create.
extern crate sysfs_gpio;
use sysfs_gpio::{Direction, Pin};
fn led_fun() {
let led_sca = Pin::new(475); // number depends on chip, etc.
led_sca.set_direction(Direction::Out);
led_sca.export();
led_sca.set_value(1);
let led_sck = Pin::new(474);
led_sck.set_direction(Direction::Out);
led_sck.export();
led_sck.set_value(1);
}
fn main() {
led_fun();
}
After a cargo run
you'll need to use sudo to execute the binary i.e. sudo ./target/debug/led-fun-binary
to avoid a permission denied error when you attempt to access the GPIO bus.
I really thought I'd hate Rust at first with it's...well, just look at it. It's not pretty. It's damn unpretty - but after a while you can see the elegance in the sparsity.
They have worked for the likes of Nike, Vodafone, Sky, Disney and Pearsons, won awards from Promax, BAFTAs, the Appys and The Drum. Spoken at The Waldorf and Southampton University - despite swearing like a sailor. Available for hire to draw pretty curves and code clever things.
POSSE: Reclaiming social media in a fragmented world
Supreme Commander - Graphics Study
Vim - Inserting inline dates shortcut
Crypto and ‘TradFi’: a friendship of convenience
The mysterious rise of the Chinese e-commerce giant behind Temu
Oumuamua, Our first interstellar visitor
How a 27-year-old busted the myth of Bitcoin’s anonymity
The future is probably federated
Integrated Tech Solutions: Aesop Rock
No, we didn't forget any zeros
Tupac Shakur murder: video released of suspect’s arrest for 1996 murder
"How we fit an NES game into 40 Kilobytes"
Saving the sounds of Afghanistan
Fuck around and find out award: Antoinette Sandbach
The long drawn out implosion of NFTs
How palette and lighting works in The Settlers II
Hidari: The Stop-Motion Samurai Film
Babylon 5: The Road Home. Official Trailer
The secret Babylon 5 project is...an animated movie
Panic enters the Mastodon arena
Adobe is collecting all of its customers' pictures into a machine learning training set.
UK Treasury joins chat app Discord and is met with torrent of abuse
Another recruit joins the Walkman ranks
ProleteR: Curses from Past Times
Financial Times's Gideon Rachman on the Ukraine Conflict
Why African fashion is having its moment
DJ Cable: Throw Back Thursdays
Web3.0: A Libertarian Dystopia
Edited latecomer's guide to crypto
Aesop Rock x Blockhead. Garbology
Moving files around for Crayon Munchers
One Man’s Amazing Journey to the Center of the Bowling Ball
The Oral History of the Chelsea Hotel
Good developers know how, great ones know why
"Fuck the bread, the bread is over"
The Promise and Perils of Insect Farming
Why bumblebees love cats, or, why everything is a system.
"This time, damn it, we’re going to get to the surface"
Designing 2D graphics in the Japanese industry
Bad launch leads to real world relativistic math
Slaughter at the bridge: Uncovering a colossal Bronze Age battle
Behind the Accidentally Resilient Design of Athens Apartments
Unreleased De La Soul Acapellas
You're designing for the web wrong: Part 1
A newspaper made from RSS feeds
Swift: Google's bet on differentiable programming
Two up, Two down in London Town