Android: Best practice for RecyclerView with a header view
I had been an Android developer for more than 5 years. I moved to Frontend developer position for 3 years then. Recently I comeback to build an Android application again. With this application, I need to build a screen looks like below: Requirements: We’re only focus on center of the…
Basic commands in Arduino basic samples
Analog Read Serial Function: setup() : runs once when you press reset Function: loop() : runs over and over again forever Serial.begin(bps): init a serial communication at bits per second. analogRead(A0) : read input on analog pin 0 (A0) Serial.println(string): print out Serial window delay(millisecond): delay between loops. 2. Concat String Acceptable: int sensorValue = analogRead(A0); String strValue = “value: “;
Mac Sierra panics on Arduino
After upgrade your Mac to Sierra, it might has some problems after you connected Mac to Arduino (mine one is UNO R3, which works perfect on Capital and older). Something likes this: and you must to restart your machine to it works normal again. So steps to fix are: Remove usb.kext in /System/Library/Extensions/ directory Install a new driver: CH34x_Install_V1.3.pkg Try to plug the Arduino into your USB port again and upload your program!