Posts

Showing posts from 2017

user space i2c driver for adxl345 with BBB

Image
Before I start, lets see two useless things. This post is not about learning but how checking if adxl chip works. My ADXL345 chip schematic This is the chip Why I use this, because I searched beforehand for which accelerometer chip I will have lots of tutorials on internet. After I am able to check if the chip works, I will go for device tree overlay to make it work on boot. Below is bad and useless code which I thought is useful. /*  * Simple I2C example  *  * Copyright 2017 Joel Stanley <joel@jms.id.au>  *  * This program is free software; you can redistribute it and/or modify  * it under the terms of the GNU General Public License as published by  * the Free Software Foundation; either version 2 of the License, or  * (at your option) any later version.  */ #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <err.h> #include <errno.h> #include <linux/...

Android Notes

Image
Windowmanager: The Android WindowManager is a system service, which is responsible for managing the z-ordered list of windows, which windows are visible, and how they are laid out on screen. Among other things, it automatically performs window transitions and animations when opening or closing an app or rotating the screen. Every activity has a Window that is used to display its content on the screen. When you call setContentView on an activity, it attaches that view to the activity's default window. The default window fills the screen, so that your activity's window hides any other activities -- the WindowManager will display whichever window is on top. So normally you don't need to worry about windows - you just create an activity and Android will do the rest for you. you need to interact with the WindowManager if you want to do something unusual like create floating windows that don't fill the screen. https://www.youtube.com/watch?v=kjGPE_XLmwg Activity Li...

repo

Image
Above is deadpool. You all can see this image of deadpool, just by a simple google image search. Another one that I tried was of superman.Have a look, I am adding a few more poses of superman and deadpool :D I will keep adding more. I am thinking of doing Nagraj, Doga and Dhruva. Thanks for seeing. Here is doga Lastly I am putting a simple video of sketching. I tried nagraj, Nagraj Sketch may you find what you seek.