Skip to content

Instantly share code, notes, and snippets.

View NapapornSantong's full-sized avatar

NapapornSantong

View GitHub Profile
<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" android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
<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" android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity">
<LinearLayout
android:orientation="vertical"
android:layout_width="match_parent"
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.napaporn.koiapplication" >
<uses-sdk
android:minSdkVersion="12"
android:targetSdkVersion="18" />
<uses-permission android:name="android.permission.INTERNET" />
<application
package com.example.napaporn.koiapplication;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.webkit.WebView;
import android.webkit.WebViewClient;
package com.example.napaporn.koiapplication;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.webkit.WebView;
import android.webkit.WebViewClient;
#include <NeoPixelBus.h>
#define pixelCount 1
#define colorSaturation 128
NeoPixelBus strip = NeoPixelBus(pixelCount, 5);
RgbColor red = RgbColor(255);
RgbColor Low = RgbColor(0, 0, 0);
void setup() {
// put your setup code here, to run once:
pinMode(4,INPUT);
#include <NeoPixelBus.h>
#define pixelCount 1
#define colorSaturation 128
NeoPixelBus strip = NeoPixelBus(pixelCount, 5);
RgbColor Sumcolor = RgbColor(255); //กำหนดค่าสี RGB
RgbColor Low = RgbColor(0, 0, 0);
// Libraries
#include <ESP8266WiFi.h>