bauland / tinyclrlib Goto Github PK
View Code? Open in Web Editor NEWLibrary to centralize use of modules in TinyClr
License: Apache License 2.0
Library to centralize use of modules in TinyClr
License: Apache License 2.0
tested this drivers (everything work well until using DOTS)
problem appear if used 0x80 check this code to understand problem
///
bool point=true;
FourDigitDisplay fdd = new FourDigitDisplay(Fez.Gpio.D3, Fez.Gpio.D4);
fdd.SetBrightness(FourDigitDisplay.Brightness.Pw01);
while (true)
{
for (int d1 = 0; d1 < 10; d1++)
for (int d2 = 0; d2 < 10; d2++)
for (int d3 = 0; d3 < 10; d3++)
for (int d4 = 0; d4 < 10; d4++)
{
//show point
fdd.SetPoint(point);
/* if point = true than number 4 appear as 9 and . number 1 appear as 7
if point = false everything was ok seem problem appear on SHIFT LEFT ..
*/
//show values
fdd.Display(d1,d2,d3,d4);
point = !point;
Thread.Sleep(350);
}
}
The initializer XML doc for the driver is wrong.
It should be:
/// <summary>
/// Constructor of MotorDriverL298
/// </summary>
/// <param name="pinDir1">pin of direction for Motor 1, pin 6 of P Socket</param>
/// <param name="pinDir2">pin of direction for Motor 2, pin 9 of P Socket</param>
/// <param name="pinPwm1">pin of Pwm for Motor 1, pin 8 of P Socket</param>
/// <param name="pinPwm2">pin of Pwm for Motor 2, pin 7 of P Socket</param>
/// <param name="idPwmController1">id of Pwm for Motor 1</param>
/// <param name="idPwmController2">id of Pwm for Motor 2</param>
At least, going by the original .netmf 4.3 driver source.
Tested on a FezSpiderII using the following code:
var motorDriver = new MotorDriverL298(
FEZSpiderII.GpioPin.Socket11.Pin6,
FEZSpiderII.GpioPin.Socket11.Pin9,
FEZSpiderII.PwmChannel.Controller0.Socket11.Pin8,
FEZSpiderII.PwmChannel.Controller1.Socket11.Pin7,
FEZSpiderII.PwmChannel.Controller0.Id,
FEZSpiderII.PwmChannel.Controller1.Id
);
Hi,
Would you be interested in supporting nanoFramework with your lib? I dont mind providing ports for the drivers I require...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.