ElectronicCats / pxt-lora

MakeCode package LoRa by Electronic Cats - beta
MIT License
5 stars 2 forks source link

Add testdependency #5

Open pelikhan opened 5 years ago

pelikhan commented 5 years ago

In order to build locally, add a testDependency pointing to arduino-mkr1300 in pxt.json

    "testDependencies": {
        "arduino-mkr1300": "*"
    }
sabas1080 commented 5 years ago

great, thanks!

sabas1080 commented 5 years ago

Not working for me, keep asking mbed

pelikhan commented 5 years ago

Make sure to pickup the latest pxt build >= 5.4.21

sabas1080 commented 5 years ago

now yes, but same error

{
    "name": "lora",
    "version": "0.1.8",
    "description": "Library for Lora",
    "license": "MIT",
    "files": [
        "README.md",
        "lora.cpp",
        "lora.ts",
        "shims.d.ts"
    ],
    "testFiles": [
        "test.ts"
    ],
    "public": true,
    "dependencies": {
        "core": "*"
    },
    "testDependencies": {
        "arduino-mkr1300": "*"
    },
    "installedVersion": "workspace:c965dd70-9447-403f-9564-ed88feecfd7d"
}
pelikhan commented 5 years ago

Run

Pxt clean Pxt build —local —force

sabas1080 commented 5 years ago

work, thanks

pelikhan commented 5 years ago

Once you have the local build, you can do “pxt gdb”

sabas1080 commented 5 years ago

I'm seeing that I start the compilation, but still use mbed captura de pantalla 2019-01-29 a la s 21 40 02 captura de pantalla 2019-01-29 a la s 21 39 52

sabas1080 commented 5 years ago

I'm seeing that it uses a previous version of pxt-core

pelikhan commented 5 years ago

You need Pxt-core 5.4.21 at least

sabas1080 commented 5 years ago

5.4.21

captura de pantalla 2019-01-29 a la s 22 02 13