RGB-led was connected to GPIO 17 (BCM-notation).
I flashed red with python at 200Hz-10kHz+
I used time.sleep(small number) for flashing red hoping to dim light, it worked but i was
hoping to dim it even more. Then no light. Thought rgb red died but it was GPIO pin 17.
Now if try use this pin python say: channel already in use.
Why this pin does not work anymore?
How to get it back working?
Thanks for your time.
Output of dmesg:
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.12.28+ (dc4@dc4-XPS13-9333) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #709 PREEMPT Mon Sep 8 15:28:00 BST 2014
[ 0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 0.000000] Machine: BCM2708
[ 0.000000] cma: CMA: reserved 8 MiB at 17800000
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] On node 0 totalpages: 98304
[ 0.000000] free_area_init_node: node 0, pgdat c061dd90, node_mem_map c06cf000
[ 0.000000] Normal zone: 768 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 98304 pages, LIFO batch:31
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 97536
[ 0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1080 bcm2708.boardrev=0xe bcm2708.serial=0xe91759d8 smsc95xx.macaddr=B8:27:EB:17:59:D8 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 374508K/393216K available (4498K kernel code, 242K rwdata, 1344K rodata, 143K init, 701K bss, 18708K reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xd8800000 - 0xff000000 ( 616 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd8000000 ( 384 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc05bca24 (5843 kB)
[ 0.000000] .init : 0xc05bd000 - 0xc05e0eac ( 144 kB)
[ 0.000000] .data : 0xc05e2000 - 0xc061e8a0 ( 243 kB)
[ 0.000000] .bss : 0xc061e8ac - 0xc06ce080 ( 702 kB)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:394
[ 0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms
[ 0.000000] Switching to timer-based delay loop
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] console [tty1] enabled
[ 0.001173] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[ 0.001234] pid_max: default: 32768 minimum: 301
[ 0.001756] Mount-cache hash table entries: 512
[ 0.002573] Initializing cgroup subsys memory
[ 0.002685] Initializing cgroup subsys devices
[ 0.002724] Initializing cgroup subsys freezer
[ 0.002755] Initializing cgroup subsys blkio
[ 0.002901] CPU: Testing write buffer coherency: ok
[ 0.003362] Setting up static identity map for 0xc04487f8 - 0xc0448854
[ 0.005303] devtmpfs: initialized
[ 0.021248] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[ 0.022823] NET: Registered protocol family 16
[ 0.028113] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[ 0.028794] cpuidle: using governor ladder
[ 0.028844] cpuidle: using governor menu
[ 0.029245] bcm2708.uart_clock = 0
[ 0.031320] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[ 0.031381] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.031415] mailbox: Broadcom VideoCore Mailbox driver
[ 0.031513] bcm2708_vcio: mailbox at f200b880
[ 0.031618] bcm_power: Broadcom power driver
[ 0.031656] bcm_power_open() -> 0
[ 0.031680] bcm_power_request(0, 8)
[ 0.532395] bcm_mailbox_read -> 00000080, 0
[ 0.532435] bcm_power_request -> 0
[ 0.532691] Serial: AMBA PL011 UART driver
[ 0.532865] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83, base_baud = 0) is a PL011 rev3
[ 0.891427] console [ttyAMA0] enabled
[ 0.918551] bio: create slab <bio-0> at 0
[ 0.924077] SCSI subsystem initialized
[ 0.928076] usbcore: registered new interface driver usbfs
[ 0.933777] usbcore: registered new interface driver hub
[ 0.939337] usbcore: registered new device driver usb
[ 0.945902] Switched to clocksource stc
[ 0.950177] FS-Cache: Loaded
[ 0.953347] CacheFiles: Loaded
[ 0.969220] NET: Registered protocol family 2
[ 0.975030] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.982440] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.989032] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.995479] TCP: reno registered
[ 0.998775] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 1.004647] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 1.011423] NET: Registered protocol family 1
[ 1.016415] RPC: Registered named UNIX socket transport module.
[ 1.022376] RPC: Registered udp transport module.
[ 1.027181] RPC: Registered tcp transport module.
[ 1.031904] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.039233] bcm2708_dma: DMA manager at f2007000
[ 1.043975] bcm2708_gpio: bcm2708_gpio_probe c05efef0
[ 1.049546] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[ 1.059120] audit: initializing netlink socket (disabled)
[ 1.064626] type=2000 audit(0.910:1): initialized
[ 1.234431] VFS: Disk quotas dquot_6.5.2
[ 1.238790] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 1.247789] FS-Cache: Netfs 'nfs' registered for caching
[ 1.254692] NFS: Registering the id_resolver key type
[ 1.259976] Key type id_resolver registered
[ 1.264183] Key type id_legacy registered
[ 1.268987] msgmni has been set to 747
[ 1.274723] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 1.282584] io scheduler noop registered
[ 1.286667] io scheduler deadline registered (default)
[ 1.292143] io scheduler cfq registered
[ 1.297357] BCM2708FB: allocated DMA memory 57c00000
[ 1.302403] BCM2708FB: allocated DMA channel 0 @ f2007000
[ 1.314511] bcm2708_fb_pan_display(0,0) returns=0
[ 1.331717] Console: switching to colour frame buffer device 240x67
[ 1.332526] bcm2708_fb_pan_display(0,0) returns=0
[ 1.365724] bcm2708-dmaengine bcm2708-dmaengine: Load BCM2835 DMA engine driver
[ 1.373593] uart-pl011 dev:f1: no DMA platform data
[ 1.379337] vc-cma: Videocore CMA driver
[ 1.383360] vc-cma: vc_cma_base = 0x00000000
[ 1.388227] vc-cma: vc_cma_size = 0x00000000 (0 MiB)
[ 1.393729] vc-cma: vc_cma_initial = 0x00000000 (0 MiB)
[ 1.409373] brd: module loaded
[ 1.418166] loop: module loaded
[ 1.421717] vchiq: vchiq_init_state: slot_zero = 0xd7800000, is_master = 0
[ 1.429949] Loading iSCSI transport class v2.0-870.
[ 1.436179] usbcore: registered new interface driver smsc95xx
[ 1.442320] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 1.648506] Core Release: 2.80a
[ 1.651749] Setting default values for core params
[ 1.656749] Finished setting default values for core params
[ 1.862502] Using Buffer DMA mode
[ 1.865942] Periodic Transfer Interrupt Enhancement - disabled
[ 1.871884] Multiprocessor Interrupt Enhancement - disabled
[ 1.877592] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 1.882043] Dedicated Tx FIFOs mode
[ 1.886021] WARN::dwc_otg_hcd_init:1042: FIQ DMA bounce buffers: virt = 0xd7c14000 dma = 0x57c14000 len=9024
[ 1.896092] FIQ FSM acceleration enabled for :
[ 1.896092] Non-periodic Split Transactions
[ 1.896092] Periodic Split Transactions
[ 1.896092] High-Speed Isochronous Endpoints
[ 1.913162] dwc_otg: Microframe scheduler enabled
[ 1.913256] WARN::hcd_init:473: FIQ at 0xc0321550
[ 1.918110] WARN::hcd_init:474: FIQ ASM at 0xc0321800 length 36
[ 1.924152] WARN::hcd_init:500: MPHI regs_base at 0xd8806000
[ 1.929969] dwc_otg bcm2708_usb: DWC OTG Controller
[ 1.934985] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[ 1.947303] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[ 1.957704] Init: Port Power? op_state=1
[ 1.966515] Init: Power Port (0)
[ 1.974852] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.986597] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.998724] usb usb1: Product: DWC OTG Controller
[ 2.008288] usb usb1: Manufacturer: Linux 3.12.28+ dwc_otg_hcd
[ 2.019052] usb usb1: SerialNumber: bcm2708_usb
[ 2.029429] hub 1-0:1.0: USB hub found
[ 2.038351] hub 1-0:1.0: 1 port detected
[ 2.047840] dwc_otg: FIQ enabled
[ 2.047861] dwc_otg: NAK holdoff enabled
[ 2.047872] dwc_otg: FIQ split-transaction FSM enabled
[ 2.047894] Module dwc_common_port init
[ 2.048382] usbcore: registered new interface driver usb-storage
[ 2.059867] mousedev: PS/2 mouse device common for all mice
[ 2.071116] bcm2835-cpufreq: min=700000 max=700000 cur=700000
[ 2.082029] bcm2835-cpufreq: switching to governor powersave
[ 2.092601] bcm2835-cpufreq: switching to governor powersave
[ 2.103228] sdhci: Secure Digital Host Controller Interface driver
[ 2.114314] sdhci: Copyright(c) Pierre Ossman
[ 2.123504] sdhci: Enable low-latency mode
[ 2.175978] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
[ 2.188969] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
[ 2.200063] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.212755] ledtrig-cpu: registered to indicate activity on CPUs
[ 2.231152] hidraw: raw HID events driver (C) Jiri Kosina
[ 2.241771] usbcore: registered new interface driver usbhid
[ 2.254561] Indeed it is in host mode hprt0 = 00021501
[ 2.266747] usbhid: USB HID core driver
[ 2.280522] TCP: cubic registered
[ 2.306043] Initializing XFRM netlink socket
[ 2.326019] NET: Registered protocol family 17
[ 2.346142] Key type dns_resolver registered
[ 2.366757] registered taskstats version 1
[ 2.375841] mmc0: read SD Status register (SSR) after 2 attempts
[ 2.401101] mmc0: new high speed SDHC card at address e624
[ 2.412281] Waiting for root device /dev/mmcblk0p2...
[ 2.431348] mmcblk0: mmc0:e624 SU32G 29.7 GiB
[ 2.442853] mmcblk0: p1 p2
[ 2.546109] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 2.558344] Indeed it is in host mode hprt0 = 00001101
[ 2.607244] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 2.636004] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 2.657250] devtmpfs: mounted
[ 2.665744] Freeing unused kernel memory: 140K (c05bd000 - c05e0000)
[ 2.816660] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[ 2.828733] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2.842057] hub 1-1:1.0: USB hub found
[ 2.851968] hub 1-1:1.0: 3 ports detected
[ 3.136248] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 3.266623] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[ 3.284180] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 3.305069] smsc95xx v1.0.4
[ 3.382024] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:17:59:d8
[ 3.496321] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[ 3.654100] usb 1-1.2: New USB device found, idVendor=148f, idProduct=5370
[ 3.666485] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3.679086] usb 1-1.2: Product: 802.11 n WLAN
[ 3.688692] usb 1-1.2: Manufacturer: Ralink
[ 3.698077] usb 1-1.2: SerialNumber: 1.0
[ 3.806249] usb 1-1.3: new full-speed USB device number 5 using dwc_otg
[ 3.931386] usb 1-1.3: New USB device found, idVendor=04b3, idProduct=301a
[ 3.954427] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3.984577] usb 1-1.3: Product: USB 1.1 2port downstream low power hub
[ 4.006206] usb 1-1.3: Manufacturer: Lite-On Technology
[ 4.032390] hub 1-1.3:1.0: USB hub found
[ 4.051639] hub 1-1.3:1.0: 3 ports detected
[ 4.356431] usb 1-1.3.1: new full-speed USB device number 6 using dwc_otg
[ 4.492788] udevd[156]: starting version 175
[ 4.502614] usb 1-1.3.1: New USB device found, idVendor=04b3, idProduct=301b
[ 4.527818] usb 1-1.3.1: New USB device strings: Mfr=1, Product=3, SerialNumber=0
[ 4.558989] usb 1-1.3.1: Product: USB Productivity Option Keyboard( has the hub in # 1 )
[ 4.596459] usb 1-1.3.1: Manufacturer: Lite-On Technology
[ 4.651795] input: Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 ) as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.1/1-1.3.1:1.0/input/input0
[ 4.719837] hid-generic 0003:04B3:301B.0001: input,hidraw0: USB HID v1.10 Keyboard [Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 )] on usb-bcm2708_usb-1.3.1/input0
[ 4.806505] input: Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 ) as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.1/1-1.3.1:1.1/input/input1
[ 4.806979] hid-generic 0003:04B3:301B.0002: input,hidraw1: USB HID v1.10 Device [Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 )] on usb-bcm2708_usb-1.3.1/input1
[ 5.959415] bcm2708_i2c_init_pinmode(1,2)
[ 6.102119] bcm2708_i2c_init_pinmode(1,3)
[ 6.286754] bcm2708_i2c bcm2708_i2c.1: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100000)
[ 6.871681] cfg80211: Calling CRDA to update world regulatory domain
[ 7.307587] bcm2708-i2s bcm2708-i2s.0: Failed to create debugfs directory
[ 7.856362] usb 1-1.2: reset high-speed USB device number 4 using dwc_otg
[ 8.137533] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5390, rev 0502 detected
[ 8.566398] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 5370 detected
[ 8.729128] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 8.731005] usbcore: registered new interface driver rt2800usb
[ 8.916183] pcm512x 1-004d: Failed to reset device: -5
[ 9.015317] pcm512x: probe of 1-004d failed with error -5
[ 9.085714] pcm512x 1-004c: Failed to reset device: -5
[ 9.111906] pcm512x: probe of 1-004c failed with error -5
[ 12.270256] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 12.848024] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 13.723657] i2c /dev entries driver
[ 19.556200] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[ 22.563159] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[ 22.804923] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
[ 22.818408] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.29
[ 26.514015] wlan0: authenticate with 50:9f:27:79:81:3a
[ 26.573257] wlan0: send auth to 50:9f:27:79:81:3a (try 1/3)
[ 26.575068] wlan0: authenticated
[ 26.586144] wlan0: associate with 50:9f:27:79:81:3a (try 1/3)
[ 26.610364] wlan0: RX AssocResp from 50:9f:27:79:81:3a (capab=0x431 status=0 aid=2)
[ 26.621688] wlan0: associated
[ 26.776216] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 26.978555] nf_conntrack version 0.5.0 (5981 buckets, 23924 max)
[ 30.070617] Adding 102396k swap on /var/swap. Priority:-1 extents:1 across:102396k SSFS
[ 30.531374] lirc_dev: IR Remote Control driver registered, major 248
[ 30.544224] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.
[ 31.506259] lirc_rpi: auto-detected active low receiver on GPIO pin 18
[ 31.511453] lirc_rpi lirc_rpi.0: lirc_dev: driver lirc_rpi registered at minor = 0
[ 31.511487] lirc_rpi: driver registered!
[ 32.243955] input: lircd as /devices/virtual/input/input2
[ 67.017935] usb 1-1.3.2: new low-speed USB device number 7 using dwc_otg
[ 67.127624] usb 1-1.3.2: New USB device found, idVendor=046d, idProduct=c001
[ 67.127660] usb 1-1.3.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 67.127677] usb 1-1.3.2: Product: USB Mouse
[ 67.127691] usb 1-1.3.2: Manufacturer: Logitech
[ 67.162917] input: Logitech USB Mouse as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.2/1-1.3.2:1.0/input/input3
[ 67.163917] hid-generic 0003:046D:C001.0003: input,hidraw2: USB HID v1.10 Mouse [Logitech USB Mouse] on usb-bcm2708_usb-1.3.2/input0
[ 114.384809] bcm2708_fb_pan_display(0,0) returns=0
[ 114.435031] bcm2708_fb_blank(1) returns=1 p[1]=0x80000000
[ 114.435640] bcm2708_fb_pan_display(0,0) returns=0
[ 115.564090] bcm2708_fb_blank(0) returns=0 p[1]=0x80000000
[ 737.076443] bcm2835_audio_set_ctls:558 Controls set for stream 0
[ 737.077417] bcm2835_audio_set_ctls:558 Controls set for stream 0