Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

PWM help

Vb PWM

Best Answer twinnaz, 11 January 2013 - 03:38 PM

After spending some time in the chat room some helpful  forum members provided some code for PWM

 

Public Shared Sub Main()	Dim Led1 As New PWM(PWMChannels.PWM_PIN_D5, 140, 0, False)	' write your code here	Led1.Start()	While True		Dim i As Double = 0		While i < 0.99			Led1.DutyCycle = i			i += 0.1		End While	End WhileEnd Sub
Go to the full post


  • Please log in to reply
2 replies to this topic

#1 twinnaz

twinnaz

    Advanced Member

  • Members
  • PipPipPip
  • 38 posts
  • LocationBrampton, Ontario

Posted 09 January 2013 - 05:59 AM

Hi im trying to set up an led to automatically dim on and off but I need help setting up PWM using VB.

Im new to this but just need some guidance in the right direction


Netduino Plus 2


#2 twinnaz

twinnaz

    Advanced Member

  • Members
  • PipPipPip
  • 38 posts
  • LocationBrampton, Ontario

Posted 11 January 2013 - 03:38 PM   Best Answer

After spending some time in the chat room some helpful  forum members provided some code for PWM

 

Public Shared Sub Main()	Dim Led1 As New PWM(PWMChannels.PWM_PIN_D5, 140, 0, False)	' write your code here	Led1.Start()	While True		Dim i As Double = 0		While i < 0.99			Led1.DutyCycle = i			i += 0.1		End While	End WhileEnd Sub

Netduino Plus 2


#3 Jean-Martin

Jean-Martin

    Member

  • Members
  • PipPip
  • 18 posts
  • Location[FR], Montreal, Canada

Posted 14 January 2013 - 04:12 AM

It's a pleasure Nice coding


Jean-Martin






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.