Blog J.Schweiss

Infosammlung zu .NET- und anderen Programmier-Themen

Microsoft Message Analyzer

clock April 20, 2015 02:10 by author Administrator

download V1.2



u8glib

clock April 19, 2015 21:24 by author Administrator

graphic lib

ugclib for ST7735

lcd oszilloscope for  DG-16080-11 with touch screen basics

 

wifi terminal



PI Bootstrap

clock April 13, 2015 00:48 by author Administrator

here



Independent ON-OFF Times

clock April 13, 2015 00:40 by author Administrator

with millis()

How to reste millis()

 

// On and Off Times (as int, max=32secs)

const

unsigned int onTime = 1000;

const

unsigned int offTime = 500;

// Tracks the last time event fired

unsigned

long previousMillis=0;

// Interval is how long we wait

int

interval = onTime;

// Used to track if LED should be on or off

boolean LED13state

= true;

// Usual Setup Stuff

void

setup() {

pinMode

(13, OUTPUT);

}

void

loop() {
// Set Pin 13 to state of LED13state each timethrough loop() // If LED13State hasn't changed, neither will the pin

digitalWrite

(13, LED13state);
// Grab snapshot of current time, this keeps all timing // consistent, regardless of how much code is inside the next if-statement unsigned long currentMillis = millis(); // Compare to previous capture to see if enough time has passed if ((unsigned long)(currentMillis - previousMillis) >= interval) { // Change wait interval, based on current LED state if (LED13state) { // LED is currently on, set time to stay off

interval

= offTime;
} else { // LED is currently off, set time to stay on

interval

= onTime;
} // Toggle the LED's state, Fancy, eh!?

LED13state

= !(LED13state);
// Save the current time to compare "later"

previousMillis

= currentMillis;
}

}



Measure Battery Capacity

clock April 13, 2015 00:32 by author Administrator

here



F() Macro

clock April 12, 2015 23:48 by author Administrator

explained on programming

Serial.println(F(“Hello World”));
Lcd.print(F(“W”));

The F() macro tells the compiler to leave this particular array in PROGMEM. Then when it is time to access it, one byte of the data is copied to RAM at a time. There’s a small performance overhead for this extra work. However, printing strings over Serial or to a LCD is a really slow process, so a few extra clock cycles really won’t matter.

ProgMem

 

Serial: Multi Digit Integers

void

setup()

{

Serial.begin(9600);

}

void

loop() {

char buffer[] = {' ',' ',' ',' ',' ',' ',' '}; // Receive up to 7 bytes

while (!Serial.available()); // Wait for characters

Serial.readBytesUntil('n', buffer, 7);

int incomingValue = atoi(buffer);

Serial.println(incomingValue);

}

void

setup()

{

Serial.begin(9600);

}

unsigned

int integerValue=0; // Max value is 65535

char

incomingByte;

void

loop()

{

if (Serial.available() > 0) { // something came across serial

integerValue = 0; // throw away previous integerValue

while(1) { // force into a loop until 'n' is received

incomingByte = Serial.read();

if (incomingByte == '\n') break; // exit the while(1), we're done receiving

if (incomingByte == -1) continue; // if no characters are in the buffer read() returns -1

integerValue *= 10; // shift left 1 decimal place

// convert ASCII to integer, add, and shift left 1 decimal place

integerValue = ((incomingByte - 48) + integerValue);

}

Serial.println(integerValue); // Do something with the value

}

}



Powershell

clock April 12, 2015 23:19 by author Administrator

Blogger Article
Francois-Xavier Cat Standard and Advanced PowerShell functions
Mike F Robbins PowerShell Advanced Functions: Can we build them better? With parameter validation, yes we can!
Adam Bertram #PSBlogWeek – Dynamic Parameters and Parameter Validation
Jeffery Hicks PowerShell Blogging Week: Supporting WhatIf and Confirm
June Blender Advanced Help for Advanced Functions – #PSBlogWeek
Boe Prox A Look at Try/Catch in PowerShell
  http://blogs.technet.com/b/josebda/

from here



ASP.NET 5 on Ubuntu Linux

clock April 12, 2015 22:36 by author Administrator

Article



Function Pointer in C++

clock April 12, 2015 21:56 by author Administrator

Article



USB serial device by VID/PID

clock April 12, 2015 21:43 by author Administrator

here

 

Imports System
Imports System.IO
Imports System.Management
Imports Microsoft.Win32
Imports System.Text.RegularExpressions
 
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim rk1 As RegistryKey = Registry.LocalMachine  ' HKEY_LOCAL_MACHINE
        Dim rk2 As RegistryKey = rk1.OpenSubKey("SYSTEM\\CurrentControlSet\\Enum")  ' HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum
        TextBox_FileDump.AppendText(vbCrLf + "rk1 = " + rk1.ToString())
        TextBox_FileDump.AppendText(vbCrLf + "rk2 = " + rk2.ToString())
 
        Dim VID As String = "0403"
        Dim PID As String = "6001"
        Dim pattern As String = String.Format("^VID_{0}.PID_{1}", VID, PID)
        Dim _rx As Regex = New Regex(pattern, RegexOptions.IgnoreCase)
        Dim s3 As String
        For Each s3 In rk2.GetSubKeyNames()
            TextBox_FileDump.AppendText(vbCrLf + "s3 = " + s3)
 
            Dim rk3 As RegistryKey = rk2.OpenSubKey(s3)
            TextBox_FileDump.AppendText(vbCrLf + "rk3 = " + rk3.ToString())
 
            Dim s As String
            For Each s In rk3.GetSubKeyNames()
                TextBox_FileDump.AppendText(vbCrLf + "s = " + s)
 
                If _rx.Match(s).Success Then
                    Dim rk4 As RegistryKey = rk3.OpenSubKey(s)
                    TextBox_FileDump.AppendText(vbCrLf + "rk4 = " + rk4.ToString())
 
                    Dim s2 As String
                    For Each s2 In rk4.GetSubKeyNames()
                        TextBox_FileDump.AppendText(vbCrLf + "s2 = " + s2)
 
                        Dim rk5 As RegistryKey = rk4.OpenSubKey(s2)
                        Dim rk6 As RegistryKey = rk5.OpenSubKey("Device Parameters")
                        TextBox_FileDump.AppendText(vbCrLf + "rk5 = " + rk5.ToString())
                        TextBox_FileDump.AppendText(vbCrLf + "rk6 = " + rk6.ToString())
 
                        TextBox_FileDump.AppendText(vbCrLf + "PORT NAME = " + rk6.GetValue("PortName"))
 
                    Next
 
                End If
 
            Next
 
        Next
 

    End Sub



LIRC on Raspi

clock April 12, 2015 20:55 by author Administrator

Article



WinToFlash

clock April 11, 2015 19:16 by author Administrator

here



USB printer go wireless

clock April 11, 2015 19:12 by author Administrator

HowTo with TP-LINNK WR-703N



SDR

clock April 11, 2015 19:06 by author Administrator

Article

Devices

Quick Start

Gnu Radio



Wireless Printer

clock April 11, 2015 18:57 by author Administrator

Article with TP-Link Router

Unbrick FTDI



FS20 Protokoll

clock April 11, 2015 16:18 by author Administrator

Protokoll and decoder

FHT

433m-Sensor

GNU-Radio with Raspberry2

SDRSharp and PlugIns

NooElec Upconverter

RTL_SDR



Samsung CLX-3300 Series

clock April 5, 2015 18:52 by author Administrator

image



SignalR with Windows Service

clock April 4, 2015 01:32 by author Administrator

Article

  • ASP.NET SignalR Hubs API Guide - Server
  • ASP.NET SignalR Hubs API Guide - .NET Client
  • Creating a Windows Service Application
  • Learn About ASP.NET SignalR
  • Sample SignalR Game ShootR
  • SignalR Source Code
  • Building Web Apps with ASP.NET Jump Start: (08) Real-time Communication with SignalR
  • OWIN and Katana
  • Using SignalR in WinForms and WPF
  • Server Broadcast with SignalR
  • HubConnectionContext Class
  • SignalR Hubs API Guide
  • Working with Groups in SignalR
  • ASP.NET SignalR
  • SignalR Project
  • SignalR Github and Samples
  • SignalR Wiki
  • For a walkthrough on how to deploy a SignalR application to Azure, see Using SignalR with Web Apps in Azure App Service. For detailed information about how to deploy a Visual Studio web project to a Windows Azure Web Site, see Create an ASP.NET web app in Azure App Service.


  • Simulate Arduino

    clock April 3, 2015 04:38 by author Administrator

    here



    EVE–FT800 Projects

    clock März 30, 2015 01:20 by author Administrator

    here