Avatar for urish

urish

Member since Jun 2018 • Last active Sep 2018
  • 0 conversations
  • 5 comments

Most recent activity

  • in Porting to new Devices
    Avatar for urish

    Thank you for that @Gordon! Does it still build for you?

    I'm getting an error saying it can't find nrf.h, I suspect it could be looking in the wrong place or perhaps this file is missing in the nrf5x_15 sdk folder?

    uri@JAY:/home/uri/espruino$ make BOARD=NRF52840DK RELEASE=1
    Generating platform configs
    Generating pin info
    Generating JS wrappers
    WRAPPERSOURCES = src/jswrap_array.c src/jswrap_arraybuffer.c src/jswrap_dataview.c src/jswrap_date.c src/jswrap_error.c src/jswrap_espruino.c src/jswrap_flash.c src/jswrap_functions.c src/jswrap_interactive.c src/jswrap_io.c src/jswrap_json.c src/jswrap_modules.c src/jswrap_pin.c src/jswrap_number.c src/jswrap_object.c src/jswrap_onewire.c src/jswrap_pipe.c src/jswrap_process.c src/jswrap_promise.c src/jswrap_regexp.c src/jswrap_serial.c src/jswrap_storage.c src/jswrap_spi_i2c.c src/jswrap_stream.c src/jswrap_string.c src/jswrap_waveform.c libs/math/jswrap_math.c libs/graphics/jswrap_graphics.c libs/network/jswrap_net.c libs/network/http/jswrap_http.c libs/network/js/jswrap_jsnetwork.c libs/bluetooth/jswrap_bluetooth.c libs/neopixel/jswrap_neopixel.c
    DEFINES = -DGIT_COMMIT=0304abbc -DNO_ASSERT -DRELEASE -DBUILDNUMBER="154" -DCONFIG_GPIO_AS_PINRESET -DBOARD_PCA10056 -DNRF_USB=1 -DUSB -DUSE_DEBUGGER -DUSE_TAB_COMPLETE -DUSE_HEATSHRINK -DUSE_MATH -DUSE_GRAPHICS -DUSE_NET -DBLUETOOTH -DUSE_NEOPIXEL -DS140 -DNRF_SD_BLE_API_VERSION=6 -D__HEAP_SIZE=0 -DBLE_STACK_SUPPORT_REQD -DSWI_DISABLE0 -DSOFTDEVICE_PRESENT -DFLOAT_ABI_HARD -DNRF52 -DNRF52840_XXAA -DNRF52840DK -DNRF52840 -DNRF5X -DNRF5X_SDK_15 -DARM -DLINK_TIME_OPTIMISATION -DEMBEDDED
    CC libs/compression/heatshrink/heatshrink_e­ncoder.o
    CC libs/compression/heatshrink/heatshrink_d­ecoder.o
    CC libs/compression/compress_heatshrink.o
    In file included from /mnt/c/P/espruino/src/jsutils.h:17:0,
                     from libs/compression/compress_heatshrink.c:1­5:
    gen/platform_config.h:13:17: fatal error: nrf.h: No such file or directory
     [#include](http://forum.espruino.com/sea­rch/?q=%23include) "nrf.h"
                     ^
    compilation terminated.
    Makefile:768: recipe for target 'libs/compression/compress_heatshrink.o'­ failed
    make: *** [libs/compression/compress_heatshrink.o]­ Error 1
    
  • in Porting to new Devices
    Avatar for urish

    Hi @Gordon,

    Is the code for the nRF52840 + USB on GitHub? I tried to look for it in master, but couldn't seem to find any mention of nRF + USB...

    Thx!

  • in Interfacing
    Avatar for urish

    It's not a library per-se, just a code example. You can run PoC the code in the gist and it should draw a t-rex image on the screen (assuming that you have a similar model to mine, otherwise adjustments might be needed).

    Then you can look inside the display.js module of my game and use it as a basis for a library. You will probably have to manually change the pins in the code to whatever pins your display is connected to. Good luck!

  • in Interfacing
    Avatar for urish

    I managed to get the 2-colored one working on Espruino as part of my IRL Chrome T-Rex game project.

    You can find my initial PoC code in this gist, or check out the final version here.

Actions