This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[env] | |
platform = nordicnrf52 | |
board = nano33ble | |
framework = arduino | |
src_filter = +<*> | |
[env:transmitter] | |
src_filter = | |
${env.src_filter} | |
-<receiver.cpp> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[env] | |
platform = nordicnrf52 | |
board = nano33ble | |
framework = arduino | |
src_filter = +<*> | |
[env:transmitter] | |
src_filter = | |
${env.src_filter} | |
-<receiver.cpp> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[env:nano33ble] | |
platform = nordicnrf52 | |
board = nano33ble | |
framework = arduino |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino.h> | |
void setup() | |
{ | |
pinMode(LED_BUILTIN, OUTPUT); // set LED pin as output | |
digitalWrite(LED_BUILTIN, LOW); // switch off LED pin | |
Serial.begin(9600); // initialize serial communication at 9600 bits per second: | |
Serial1.begin(9600); // initialize UART with baud rate of 96007 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino.h> | |
void setup() | |
{ | |
Serial.begin(9600); | |
pinMode(LED_BUILTIN, OUTPUT); // set LED pin as output | |
digitalWrite(LED_BUILTIN, LOW); // switch off LED pin | |
Serial1.begin(9600); // initialize UART with baud rate of 96006 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onClickNoProp : Msg -> Html.Attribute Msg | |
onClickNoProp msg = | |
Html.Events.custom "click" | |
(Decode.succeed | |
{ message = msg | |
, stopPropagation = True | |
, preventDefault = False | |
} | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main exposing (main) | |
import Browser | |
import Html exposing (Html, button, div, h2, text) | |
import Html.Events exposing (onClick) | |
import Dict exposing (Dict) | |
import Set exposing (Set) | |
type alias Model = |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>First Web Page</title> | |
</head> | |
<body> | |
<p>Hello World!</p> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.helloworld; | |
import android.support.v7.app.AppCompatActivity; | |
import android.os.Bundle; | |
public class MainActivity extends AppCompatActivity { | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.activity_main); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" > | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_centerHorizontal="true" | |
android:layout_centerVertical="true" |
NewerOlder