Compare commits

..

No commits in common. "711e86f918a22db8ab08736b6be85f8e0b575eaa" and "7f8cc9420db05e814c9039cecf196142d2ef8f90" have entirely different histories.

5 changed files with 6 additions and 12 deletions

View file

@ -142,7 +142,7 @@ bool PixelBot::Tick()
return true; return true;
} }
bool PixelBot::processCommand(String command) bool PixelBot:processCommand(String command)
{ {
return false; return false;

View file

@ -13,10 +13,6 @@ public:
private: private:
int motorLookup[8] = {B01000, B01100, B00100, B00110, B00010, B00011, B00001, B01001};
int motorSpeed = 1200; //variable to set stepper speed }
int count = 0; // count of steps made
int countsperrev = 512; // number of steps per full revolution
};

View file

@ -105,6 +105,7 @@ namespace PixelHub.Server
while(true) while(true)
{ {
TcpClient nextClient = await server.AcceptTcpClientAsync(); TcpClient nextClient = await server.AcceptTcpClientAsync();
Console.WriteLine("Got connection");
AsyncTools.ForgetTask(Handle(nextClient)); AsyncTools.ForgetTask(Handle(nextClient));
} }
// TODO: Add an shutdown CancellationToken thingy here // TODO: Add an shutdown CancellationToken thingy here

View file

@ -23,8 +23,8 @@ namespace PixelHub.Server
IPAddress.Parse("239.62.148.30"), port, IPAddress.Parse("239.62.148.30"), port,
beaconWriter beaconWriter
); );
beacon.LocalIP = IPAddress.Parse("10.42.0.1"); beacon.LocalIP = IPAddress.Parse("192.168.0.5");
beacon.NetworkInterfaceName = "wlp2s0"; beacon.NetworkInterfaceName = "wlan0";
PixelHub server = new PixelHub(port, serverWriter); PixelHub server = new PixelHub(port, serverWriter);
//server.BindAddress = IPAddress.Parse("10.42.0.1"); //server.BindAddress = IPAddress.Parse("10.42.0.1");

View file

@ -17,6 +17,3 @@ A combination of a C# server and an arduino program that allows the control of a
- [Sockoverflow answer](http://stackoverflow.com/questions/2192548/specifying-what-network-interface-an-udp-multicast-should-go-to-in-net) - [Sockoverflow answer](http://stackoverflow.com/questions/2192548/specifying-what-network-interface-an-udp-multicast-should-go-to-in-net)
- [IPv4InterfaceProperties](https://msdn.microsoft.com/en-us/library/system.net.networkinformation.ipv4interfaceproperties(v=vs.110).aspx) - [IPv4InterfaceProperties](https://msdn.microsoft.com/en-us/library/system.net.networkinformation.ipv4interfaceproperties(v=vs.110).aspx)
### Bits and Bobs
- [NeoPixel](https://www.aliexpress.com/item/12-Bits-12-X-WS2812-5050-RGB-LED-Ring-Lamp-Light-with-Integrated-Drivers/32674296246.html?ws_ab_test=searchweb0_0,searchweb201602_2_10065_10068_10000009_10000032_10084_10000025_10083_10000029_10080_10082_10081_10000028_10110_10111_10060_10112_10113_10062_10114_10115_10056_503_10055_10054_10059_10000044_10099_501_10078_10079_10000022_10000012_10103_429_10073_10102_10000015_10000035_10096_10000018_10000019_10052_10053_10107_10050_10106_10051-10050,searchweb201603_3,afswitch_1,single_sort_3_default&btsid=d363368f-3ac5-4403-8a5a-6457cb863a7b)