Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

Sort By

USER REQUESTS

first | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 last
Gergő Janek
geri12

posted on 2014/12/24 02:04:56 PM CET

Measurement

Example code illuminance click for PIC or PIC32 MCU-s

Hi everyone!

Sorry, I only speak little English...

I need example code TSL2561 illuminance click for PIC or PIC32 MCU-s.

I looked for ARM example, but got stuck i2c communication. :( So it would be quite an i2c-s example.

Thank you, if anyone can help!

lamissa na
lamiss

posted on 2014/12/12 09:57:03 AM CET

Other Codes

7 segment counter

hi
i make a counter project ..i use pic18f4620 , 3 switches and 7 segment
i want to make a counter with 3 switches ( the first : on each click it counts up 1) (the second switch : on each click it counts down 1) (the third switch : make it 0000 or reset )
and if i want to count in float as ( 00.0.,,00.1,,00.2.......1.1 ) what should i do ??

Michael Demulling
mdemulling

posted on 2014/12/08 04:51:06 AM CET

Storage

Storage MMC/SD BIG8051 Mikroc

I'm looking for code that interfaces 6 MMC/SD CARDs on the big8051. On ports 1-7. I need code for the board and the application for the host computer. I would like to program the host in c# using visual studio 2013. any code to start would be appreciated. Thank you for your time.

Mel Hooper
hooper

posted on 2014/12/03 01:02:05 PM CET

Other Codes

Copy file from SD card to USB stick

hi,

I need code for copying a file from SD card to USB stick.
both devices will be formatted to FAT32.
File size might be from several bytes to 300K.
the preferred solution will be a function that will block the application until it accomplish the copying.
instead a solution that requires periodically calling a service function is also acceptable.

I can even make the story simpler: instead of reading the data from the SD (something that I succeeded to do) the service will get a pointer to a buffer containing the data that should be stored on the USB.
this means that i might be that in order to copy the whole file several adjacent calls should be launched ( depending on source file size an buffer size), but in this case the adjacent calls should append the data to the USB.

please remember that we already are using the FAT32_Init() function for accessing the SD card.

If you have such code fragment and willing to make the changes to fit my needs please contact me.
Payment for this service will be

Paul Kimmens
pkdj

posted on 2014/11/30 03:55:29 PM CET

Communication

clicker2 and rs232 click

hi

I'm trying to get an RS232 click board working with a clicker2 board using microbasic.

My code is as as below. I don't get anything out of the serial port. It's just a very simple program to start with to get the 232 click working before I move onto more complex code. Within the code I also have a bit of code to turn on an led when a button is pressed and that all works OK. It's probably something very simple that I've not done but I can't spot it. Have looked at rs232 click examples and can't see what I am missing

Thanks

Paul





program RF_Wind_Monitor_Transmitter




' pin definitions
dim LD1 as sbit at LATD4_bit 'left hand LED
dim LD2 as sbit at LATE4_bit 'right hand LED
dim LD1_Direction as sbit at TRISD4_bit
dim LD2_Direction as sbit at TRISE4_bit

dim T1 as sbit at RD7_bit 'left hand button
dim T2 as sbit at RH3_bit 'right hand button
dim T1_Direction as sbit at TRISD7_bit
dim T2_Direction as sbit at TRISH3_bit



' MCU initialization
sub procedure MCU_Init()


T1_Direction = 1 ' Set direction for buttons
T2_Direction = 1

LD1_Direction = 0 ' Set direction for LEDs
LD2_Direction = 0

LD1 = 0 ' turn off LEDs
LD2 = 0

' Initialize global variables

UART1_Init(9600) ' Initialize UART1 module at 9600 bps
Delay_ms(100) ' Wait for UART1 module to stabilize
UART2_Init(9600) ' Initialize UART2 module at 9600 bps
Delay_ms(100) ' Wait for UART2 module to stabilize
end sub

main:
MCU_Init() ' Initialize the MCU
UART1_Write_Text("EchoTest") ' send text string
UART1_Write(13)
Delay_ms(250) ' wait for 250ms

while(TRUE) ' Endless loop
' check T1 button
if (Button(PORTD, 7, 2, 1)) then ' Detect logical zero
LD1 = 0 'turn on LD1
else
LD1 = 1 ' turn off LED1
end if

wend


end.

first | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 last