Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀

Matej Semančík matejsemancik

🚀
View GitHub Profile
@matejsemancik
matejsemancik / cc1101_config.h
Last active Apr 25, 2019
CC1101 chip config for mah diploma thesis, duh
View cc1101_config.h
// PA table
#define PA_TABLE {0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x00}
// Rf settings for CC1101
static uint8_t CC1101_CONFIG[] = {
0x29, // IOCFG2 GDO2 Output Pin Configuration
0x2E, // IOCFG1 GDO1 Output Pin Configuration
0x06, // IOCFG0 GDO0 Output Pin Configuration
0x47, // FIFOTHR RX FIFO and TX FIFO Thresholds
0xD3, // SYNC1 Sync Word, High Byte
0x91, // SYNC0 Sync Word, Low Byte
View SampleAnimator.kt
package com.thefuntasty.pitnyrezim.ui.onboarding.chat
import android.view.animation.AlphaAnimation
import android.view.animation.Animation
import android.view.animation.AnimationSet
import android.view.animation.DecelerateInterpolator
import android.view.animation.TranslateAnimation
import androidx.recyclerview.widget.RecyclerView
import androidx.recyclerview.widget.SimpleItemAnimator
View divider_blue_line.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="#1E86E5"/>
<size android:height="2dp"/>
</shape>