Ir al contenido principal

Entradas

Mostrando entradas de julio, 2017

Setting up React Native on Ubuntu 17.04

React native seems to be very promising, so i decided to give it a try. Steps to get it running: 1- Install ubuntu dependencies: sudo apt install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386 If you dont install those dependencies, probably when building your react native project, you will get an error saying: "java.io.IOException: Cannot run program "/home/edvm/Code/Android/Sdk/build-tools/23.0.1/aapt" (in directory "/home/edvm/Code/github/edvm/react/AwesomeProject"): error=2, No such file or directory" 2- Just follow steps detailed at  Getting started . 3- When you finish step 2, you will be able to build and run your react native project using your android smartphone. Steps to accomplish that are detailed at Running on Device . That's all, short post just for the records.

Playing with NodeMCU and MicroPython

Playing with MicroPython and NodeMCU (esp8266). Installing MicroPython on NodeMCU board. A time ago i wanted to try MicroPython so i decided to get a NodeMCU board. Its a very cheap one, with a serial to usb chip integrated on the board, so no need to use an usb to serial converter.  The procedure was easy, i just followed the steps detailed at  MicroPython documentation  website. For the records the steps i followed (on Ubuntu 17.04): Add your user to dialout group. You can use the command: sudo gpasswd --add ${USER} dialout  . Then you have to log out and log in. Create a virtualenv to install esptool. I did it using python 3 with command: python3 -m venv ~/.virtualenvs/esp8266 . Then i activated the virtualenv with command: source ~/.virtualenvs/esp8266/bin/activate . Having activated esp8266 python virtualenv, i installed 'esptool' using pip. Just do: pip install esptool Then you will erase the current firmware installed on your NodeMCU. To do that, connec