Avatar for Amigo

Amigo

Member since Mar 2017 • Last active Sep 2017
  • 1 conversations
  • 10 comments

My name is Roman. I'm 27. i like sport, electronics.
Programing for STM32, STM8, MSP430, AVR, NRF51/52, prefer C on Keil, IAR IDE's, CCS.
Here i'm nooby)))

Most recent activity

    • 16 comments
    • 8,296 views
  • in Other Boards
    Avatar for Amigo

    Does Espruino support scheduler or simple task manager?

  • in Other Boards
    Avatar for Amigo

    What is your display brand/model number? Some of those SSD1306 displays have different connections internally and need different initialisation codes :(

    SSD1306 oled display from china has a number at back side: GM009606A , i used it with my C library in keil. It worked nice. How can i repair it? Where i can find source file to fix it?

    Next time i tried to connect CC3000 wlan module (TI CC3000 booster pack), but compiler says than cc3000 and http modules not found and i have a log :

    ERROR: Timeout in CC3000 driver (16384)

    SPI1.setup({ sck : 27, miso : 26, mosi : 25, baud:1000000, mode:1});
    var wlan = require("CC3000").connect(SPI1, 24 /* CS */, 23 /* EN */, 22 /* IRQ */);
    wlan.connect( "Amigo_WiFI", "*******", function (s) { 
      if (s=="dhcp") {
        require("http").get("http://www.pur3.co.uk/hello.txt", function(res) {
          res.on('data', function(data) {
            console.log(">" + data);
          });
        });
      }
    });
    

    Is CC3000 supported? I use nrf52DK

  • in Other Boards
    Avatar for Amigo

    yes. Understood)
    Now i defined ble service:

    //Start BLE service
    NRF.setServices({
      0xABCD : {
        0xDCBA : {
          value    : 0x01,
          //maxLen   : 1,
          writable : true,
          readable : true,
          onWrite  : function(evt) {
            digitalWrite([LED3,LED2,LED1], evt.data[0]);
          }
        }
      }
    });
    

    it works while i am not saving program in flash. After saving my service disappears

  • in Other Boards
    Avatar for Amigo

    And one else question. how to flash mcu? it doesnt works in settings...flasher...flash

  • in Other Boards
    Avatar for Amigo

    I rebuild code with soft i2c, ssd1306 works, but it skips every other line. And symbols seems are broken. What a problem may be?

  • in Other Boards
    Avatar for Amigo

    And one else question. Are i2c pins already defined by default?
    if yes, what are their pin numbers?
    I try to use SSD1306 but it doesn't works

  • in Other Boards
    Avatar for Amigo

    Ooh, thanks a lot!!!! It works well!

  • in Other Boards
    Avatar for Amigo

    I find at nordic devZone this hex espruino_1v86.26_nrf52832 here:
    https://devzone.nordicsemi.com/blogs/980/espruino-program-nrf5-devices-in-javascript-see-th/
    but its version is 86 but now is avalible v91 for other boards....

  • in Other Boards
    Avatar for Amigo

    Hi everyone! I use nrf52-DK with Espruino ide.
    I want to start soft i2c. I tried to use hardware and software examples as http://www.espruino.com/I2C.
    I wrote a code:

    // set up SPI
    var i2c = new I2C();
    i2c.setup({ scl : 30, sda: 31 });
    // Write a single byte (0) to address 0x52
    i2c.writeTo(0x52, 0);
    
    

    but everytime i have an error message like:

    *

    Uncaught Error: Function "setup" not found!
    at line 1 col 5
    i2c.setup({ scl : 30, sda: 31 });
    Uncaught Error: Function "writeTo" not found!
    at line 1 col 5
    i2c.writeTo(0x52, 0);
    *

    Could anyone help me?

Actions