/*
* Serial echo for the Arduino Portenta H7
*
* This is a simple example, and can be cleaned up a lot more.
*
* Copyright (c) 2024 Michael de ...(continued)
Hardware Rack
4.1.1_273
(as this is the latest right now) using the staging branch in ...(continued)
impl<'a, I2C> RTClock<'a, I2C>
where
I2C: embedded_hal_1::i2c::I2c<Error = BoardError>,
{
#[allow(dead_code)]
pub fn new(bus_manager: BusManagerCortexM<I2cDriver<'a>>) -> Result<Self, BoardError> {
Ok(Self {
datetime: None,
bus_manager,
phantom: PhantomData,
})
}
// snip...
}
error[E0599]: the function or associated item `new` exists for struct `RTClock< ...(continued)
Links
- Use of ENV vars (this is pretty basic)
- Use of dotenv, for both dev and production, of course.
- Taking a Docker first approach (more on this later...)
The Homelab Stack
rued
, I wanted to use the callback defined in esp-idf-sys, but these are the C bindings. The esp-idf-sys crate implements type-safe Rust wrappers.unsafe extern "C" fn sync_cb(tv: *mut esp_idf_sys::timeval)
. While I did this just to "get things to work", there is a reason why there is a HAL (hardware-abstraction layer) provided in Rust.Post Archive
-
December 2022
-
November 2022
-
October 2022
-
September 2022
-
August 2022
-
June 2022
-
April 2022
-
March 2022
-
October 2021
-
August 2021
-
July 2021
-
November 2019
-
October 2019
-
June 2019
-
May 2019
-
April 2019
-
September 2017
-
May 2017
-
March 2017
-
January 2017
-
December 2016
-
October 2016
-
August 2016
-
June 2016
-
April 2016
- You can get US$200 for FREE from Amazon. Cold hard cash.
- Using BrowserSync and Gulp with the Rails Asset Pipeline
- HOWTO: Providing Clients with an IAM Account to Manage Billing & Payment Methods for their Root AWS Account
- Sneak Peak: Building a Ruby Gem to Provision Amazon AWS Services
- Feeling Refreshed, Back from Taking Time Off (April 2016)
-
February 2016
-
January 2016
-
October 2015
-
September 2015
-
August 2015
-
July 2015
- Dissecting The Latest Spree and Solidus API Security Vulnerability
- Autoglym Product Reviews, Now Get Replies
- Freelance 101: Early Warning Signs of a Troublesome Client
- Reaching Half a Million Views on YouTube
- Stripping sensitive details copied from terminal STDOUT by piping via sed in Mac OS X
- Faking APIs in Development and Staging
- When that Startup Interviewer cares more about where you're from
-
June 2015
- Suits is back, with Season 5 and Under the Dome
- Improving my Dockerised App stack
- Jack Dorsey is CEO at Twitter, so here's a TODO list
- Replace a MySQL table in Production via a Rails 4 Migration
- Converting SVG to PNG via Linux CLI
- Getting Resque, Rails 4.2, and Unicorn to play nice
- My favourite Docker productivity tips
- Now with Resque & Redis for hooking up with Mailchimp
- Just built a Ruby 2.2.1 compatible Mailchimp wrapper
-
May 2015
-
April 2015
-
March 2015
-
February 2015
-
November 2014
-
October 2014
-
September 2014
-
August 2014
-
May 2014
-
January 2014
-
December 2013
-
October 2013
-
September 2013
-
August 2013
-
July 2013
-
June 2013
-
May 2013
-
April 2013
-
March 2013
-
February 2013
-
January 2013
-
December 2012
-
November 2012
-
October 2012
-
May 2012
-
April 2012
-
March 2012
-
February 2012
-
January 2012
-
December 2011
-
October 2011
-
January 2011
-
December 2010
-
October 2009