I2C Device Hacking With Raspberry Pi 2

Subscribers:
120,000
Published on ● Video Link: https://www.youtube.com/watch?v=pTcX1GD1uTQ



Duration: 2:22:05
10,968 views
244


☟☟ Awesome T-Shirts! Sponsors! Books! ☟☟

I have 4 I2C devices attached to my Raspberry Pi, and have confirmed that I can talk to them.

I'm going to do some more hacking on this, maybe trying to get them working with C++.

RTC: https://datasheets.maximintegrated.com/en/ds/DS1307.pdf
OLED Driver: https://cdn-shop.adafruit.com/datasheets/SSD1306.pdf
9-axis Motion Sensor: https://invensense.tdk.com/wp-content/uploads/2015/02/PS-MPU-9250A-01-v1.1.pdf
Motion Sensor Register Map: https://invensense.tdk.com/wp-content/uploads/2015/02/MPU-9250-Register-Map.pdf
EEPROM: https://www.st.com/resource/en/datasheet/m24c32-x.pdf


OLED Python Examples: https://github.com/adafruit/Adafruit_Python_SSD1306/blob/master/Adafruit_SSD1306/SSD1306.py

RaspberryPi I2C Info: https://raspberry-projects.com/pi/programming-in-c/i2c/using-the-i2c-interface

Kernel.org I2C Documentation: https://www.kernel.org/doc/Documentation/i2c/dev-interface
T-SHIRTS AVAILABLE!

► The best C++ T-Shirts anywhere! https://my-store-d16a2f.creator-spring.com/


WANT MORE JASON?

► My Training Classes: http://emptycrate.com/training.html
► Follow me on twitter: https://twitter.com/lefticus


SUPPORT THE CHANNEL

► Patreon: https://www.patreon.com/lefticus
► Github Sponsors: https://github.com/sponsors/lefticus
► Paypal Donation: https://www.paypal.com/donate/?hosted_button_id=PQ4A2V6ZZFQEU


GET INVOLVED

► Video Idea List: https://github.com/lefticus/cpp_weekly/issues


JASON'S BOOKS

► C++ Best Practices
Amazon Paperback: https://amzn.to/3wpAU3Z
Leanpub Ebook: https://leanpub.com/cppbestpractices


JASON'S PUZZLE BOOKS

► Object Lifetime Puzzlers Book 1
Amazon Paperback: https://amzn.to/3g6Ervj
Leanpub Ebook: https://leanpub.com/objectlifetimepuzzlers_book1

► Object Lifetime Puzzlers Book 2
Amazon Paperback: https://amzn.to/3whdUDU
Leanpub Ebook: https://leanpub.com/objectlifetimepuzzlers_book2

► Object Lifetime Puzzlers Book 3
Leanpub Ebook: https://leanpub.com/objectlifetimepuzzlers_book3

► Copy and Reference Puzzlers Book 1
Amazon Paperback: https://amzn.to/3g7ZVb9
Leanpub Ebook: https://leanpub.com/copyandreferencepuzzlers_book1

► Copy and Reference Puzzlers Book 2
Amazon Paperback: https://amzn.to/3X1LOIx
Leanpub Ebook: https://leanpub.com/copyandreferencepuzzlers_book2

► Copy and Reference Puzzlers Book 3
Leanpub Ebook: https://leanpub.com/copyandreferencepuzzlers_book3

► OpCode Puzzlers Book 1
Amazon Paperback: https://amzn.to/3KCNJg6
Leanpub Ebook: https://leanpub.com/opcodepuzzlers_book1


RECOMMENDED BOOKS

► Bjarne Stroustrup's A Tour of C++ (now with C++20/23!): https://amzn.to/3X4Wypr


AWESOME PROJECTS

► The C++ Starter Project - Gets you started with Best Practices Quickly - https://github.com/cpp-best-practices/cpp_starter_project
► C++ Best Practices Forkable Coding Standards - https://github.com/cpp-best-practices/cppbestpractices


O'Reilly VIDEOS

► Inheritance and Polymorphism in C++ - https://www.oreilly.com/library/view/inheritance-and-polymorphism/9781491961933/
► Learning C++ Best Practices - https://www.oreilly.com/library/view/learning-c-best/9781491954898/




Other Videos By C++ Weekly With Jason Turner


2021-02-22C++ Weekly - Ep 260 - C++'s Most Vexing Parse: How To Spot It, Why It Exists, and How To Avoid It
2021-02-20C++ Weekly - Exploring and Reviewing F', The Mars Ingenuity Flight Software
2021-02-15C++ Weekly - Ep 259 - CRTP: What It Is, Some History and Some Uses
2021-02-08C++ Weekly - Ep 258 - The Awesome Power of C++20's std::source_location
2021-02-05I2C Device Hacking With Raspberry Pi 2 - Part 4
2021-02-01C++ Weekly - Ep 257 - Garbage In, Garbage Out - Why Initialization Matters
2021-01-29C++ Mythbusting with Victor and Jason
2021-01-28I2C Device Hacking With Raspberry Pi 2 - Part 3
2021-01-25C++ Weekly - Ep 256 - C++11's Garbage Collector
2021-01-22I2C Device Hacking With Raspberry Pi 2 - Part 2
2021-01-20I2C Device Hacking With Raspberry Pi 2
2021-01-18C++ Weekly - Ep 255 - C++11-17 Features You Still Cannot Use in 2021
2021-01-11C++ Weekly - Ep 254 - C++23's signed / unsigned size_t Literals
2021-01-04C++ Weekly - Ep 253 - C++20 is Official! How To Get Your Copy of the Standard
2020-12-28C++ Weekly - Ep 252 - Real World PMR: 2-3x Faster JSON Parsing with Custom Allocation Strategies
2020-12-21C++ Weekly - Ep 251 - constexpr Parameters With C++20's CNTTP
2020-12-14C++ Weekly - Ep 250 - Custom Allocation - How, Why, Where (Huge multi threaded gains and more!)
2020-12-07C++ Weekly - Ep 249 - Types That Shall Not Be Named
2020-11-30C++ Weekly - Ep 248 - Understand the C++17 PMR Standard Allocators and Track All the Things
2020-11-23C++ Weekly - Ep 247 - -O3, -Os, -Og, -Oz, Oh My!
2020-11-16C++ Weekly - Ep 246 - (+[](){})() What Does It Mean?



Tags:
c++
C++ game programming