This is part 1 of a series of tutorials for getting started with IoT (Internet of things). I’m writing these posts to document my adventures developing an Internet of Things project, hoping that they might serve as a guide to others. Throughout the different steps of the project, we will create a network of “Things” that senses the world and acts in real-time. We will be using Raspberry Pis, NodeMCUs, sensors, actuators, and software to create a centralized dashboard where all “Things” can be monitored and controlled.
I really enjoy using the terminal. I wanted to learn how to debug from it and decided to give lldb a try. After asking google a lot of questions I found snare/voltron . Voltron looks amazing and makes debugging with lldb a lot more visual.
Here is a screenshot of lldb debugging of a simple hello world program with Voltron
After getting this setup, I went back to work on an app on XCode, and realized that I had broken it. My simulator would lock up and I would have to force quit XCode.
Today I started working on a simple shooter game. It will be a fast and fun 2D shooter that is easy to learn, imposible to master! The art comes from the Kenney.nl donation package. I want to take advantage of the accelerometer to create some cool gameplay mechanics. It runs on mobile devices (android and iOS) and is built using Lua and CoronaSDK.
I recently found a post about a designer font made for developers. I fell in love with it, got myself a license and was really happy to have such a nice font. The problem: It does not work with my XCode out of the box! I had to modify the settings to make it look real cool. Here is the final result for the Operator Mono font running on XCode:
I couldn’t find a decent tutorial so I created one:
- Install Raspbian on your Raspberry pi 3
- Run this script: https://github.com/EthEmbedded/Raspi-Eth-Install/blob/master/geth-installer.sh
This morning I implemented a simple parallax system that creates the illusion of depth by using gravity data from the accelerometer with Corona SDK
First, I start to poll the accelerometer 100 times per second.
system.setAccelerometerInterval( 100 ) -- 100 hz is max
Gravity data from the accelerometer is then used to offset the angle of view. Illusion of depth is created by slightly moving the layers in the right direction, the magnitude of the movement depending on the distance to the eye.
To manage the scene I created 10 different layers. I placed the smaller shark in the front layer (layer 0), the larger shark in the middle (layer 5) and the back image to the background (layer 10).
I can’t tell you the number of hours I would have saved if I started using CocoaPods earlier!
If you are developing with XCode you might already know that linking libraries to your project is a major pain… Fear no more! CocoaPods is here to save your time and day.
There are lots of resources on how to install and use CocoaPods, so here is yet another one created by me:
Using the terminal do the following steps:
1. Update the ‘gem’
sudo gem update --system
2. Install CocoaPods
sudo gem install cocoapods -V